lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <>
Subject Re: Phrase search using quotes -- special Tokenizer
Date Fri, 01 Sep 2006 14:20:43 GMT
One more tip...if you would like to be able to search phrases without 
putting in the quotes you must strip them with the analyzer. In 
standardfilter (in the standard analyzer code) add this:

 private static final String QUOTED_TYPE = tokenImage[QUOTED];
- youll see where to put that

and youll see where to put this:

else if (type == QUOTED_TYPE)  {
     return new 
t.endOffset(), type);

text is a string so don't take my pseudo code literally.

- Mark

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

View raw message