lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Goetz <>
Subject Re: Using the term "C/C++" in queries
Date Sun, 10 Mar 2002 13:57:07 GMT

>Has anyone had any experience/problems with using "C/C++" in Lucene queries?
>When I do a query using that as a term I get back a bunch of records that do
>not contain the term. The resulting query ends up being like: +(+c/c++) when
>parsed by the QueryParser. I've also tried just adding Term objects to a
>query myself and it has the same affect. Thanks for any help.

If you're using any of the basic analyzers, the / and + terms will be 
dropped in tokenization.  If you want to search for terms like C++, you'll 
need a tokenizer that treats + as a letter.

Brian Goetz
Quiotix Corporation           Tel: 650-843-1300            Fax: 650-324-8032

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message