Kervin L. Pierre wrote:

Lucene returns partial matches and gives those a rank
below 1.0, with 1.0 an exact match correct?  Maybe
we only consider a hit a match if the score is 1.0 to
be compliant?  I will look into that further.

No, in my experience Lucene will not return a result that doesn't exactly match your criteria. You can arbitrarily AND and OR expressions together, but e.g. if both terms of an AND are not satisfied by a particular document that document will never be returned in the result set.

OTOH, Lucene is very customizable, so if you wanted to give you partial-match behavior I'm sure it wouldn't be very hard at all.

By the way, here is the equation for Lucene's (default) scoring algorithm:
http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Similarity.html

And here is a useful observation about Lucene scoring:
http://article.gmane.org/gmane.comp.jakarta.lucene.user/12076

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

Reply via email to