lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <markharw...@yahoo.co.uk>
Subject Re: Funny results with Fuzzy
Date Tue, 25 Oct 2005 13:26:42 GMT
It comes down to your choice of analyzer.

Don't forget your "all" field is broken down into
discreet terms by your choice of analyzer.

Most often, you will want to use the same analyzer at
query-time with the query parser to make sure the
user's input matches the stored document terms.
If you get it wrong (say using an analyzer that
doesn't lower-case) you'll find nothing:
  Kylie != kylie

If you aren't using a query parser and manually
constructing FuzzyQuery objects programmatically the
same logic applies (psueodocode): 
  new FuzzyQuery(new Term("Kylie")) != "kylie"

Hope this helps.




		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
http://uk.security.yahoo.com

---------------------------------------------------------------------
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