Thanks Dmitri :-)

-----Original Message-----
From: Dmitri Mamrukov [mailto:[EMAIL PROTECTED]
Sent: 02 December 2003 17:18
To: Lucene Users List
Subject: Re: Searching for -


Hi Iain,

There was a discussion about Dash Confusion in QueryParser (search for
"t-shirt" - with quota symbols! - or Dash Confusion). They suggested to
escape such words by putting quota symbols around them. For instance, ask
your application "DISP-NAME" instead of DISP-NAME.

Dmitri

----- Original Message ----- 
From: "Iain Young" <[EMAIL PROTECTED]>
To: "Lucene mailing list (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 12:01 PM
Subject: Searching for -


> Hi folks, another newbie question for you.
>
> I'm using Lucene to index huges chunks of source code, (cobol, jcl, c,
java,
> text documents etc). In some of these languages (such as cobol) it is
valid
> to have a variable name of DISP-NAME for example. The problem I have is
that
> when you enter this search string into the lucene query engine, it reads
the
> - character as a "NOT" modifier rather than as part of the word, and so
I'm
> getting incorrect results, (it basically does a search for DISP NOT NAME).
>
> Anyone any ideas as to how to get around this (can you 'escape' the
modifier
> characters so that Lucene doesn't interpret them as such for example)?
>
> Thanks,
> Iain Young
> http://www.microfocus.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


________________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning
Services - powered by MessageLabs. For further information visit
http://www.mci.com
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to