lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: Exact match query on a field in index which has been indexed using StandardAnalyzer
Date Thu, 15 May 2008 17:52:13 GMT

14 maj 2008 kl. 17.30 skrev Erick Erickson:
> Another
> possibility would be to introduce marker tokens in your field, index
> something like "$ member of technical staff $" and then, when
> querying for exact matches, *add* the $ tokens to the beginning
> and end of the query.

Just a note, I've hit problems with idf/tf when prefixing and  
suffixing field boundaries in a single field like this. You will  
probably have to override Similarity to ignore the prefix and suffix  
tokens to avoid bad scores.


       karl

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


Mime
View raw message