lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Similarity for Span and Boolean query
Date Mon, 08 Jan 2007 08:19:42 GMT

: The equation for similarity is given on this web page:
: http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Similari
: ty.html
:
: I would like to know what are the equations for similarity if the query
: is a span or boolean query.

That equation does cover BooleanQueries -- the "coord" factor is a
BooleanQuery concept -- strictly speaking that equation describes the
basics of a boolean query containing multiple term queries.

beyond that, the calculations can get a little hard to discribe in generic
equations -- the best way to understand the score calculations for any of
the other query types (including the Span queries) is to look at the
"Explanation.toString()" output for a query on a matching document -- and
consult the code for the corisponding Scorer class to see if there are any
special cases you might not be noticing becuase of the particular
query/doc explanation you are looking at (ie: query boosts, the coord
factor on a boolean query, etc...)

-Hoss


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