lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Problem with search results
Date Wed, 03 Mar 2004 17:33:46 GMT
Morus Walter wrote:
> Now I think this can be fixed in the query parser alone by simply allowing
> '-' within words.
> That is change
> <#_TERM_CHAR: ( <_TERM_START_CHAR> | <_ESCAPED_CHAR> ) >
> to
> <#_TERM_CHAR: ( <_TERM_START_CHAR> | <_ESCAPED_CHAR> | "-" ) >
> 
> As a result, query parser will read '-' within words (such as tft-monitor
> or Sysh1-1) as one word, which will be tokenized by the used analyzer
> and end up in a term query or phrase query depending if it create one ore
> more tokens.

Other characters which are also candidates for this sort of treatment 
include "/", "@", ".", "'", and "+".

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message