FAQ
Hi,

From what I got, the SpanOrQuery is similar to a BooleanQuery with
Or-Clauses. It can be used in other span queries.
But compared to the BooleanQuery it has a significant difference: It is
missing a querynormalization. Thus by the just summed up idf of all
tokens in the query, even documents with just one hit get an extremely
high score as mainly the idf is relevant for scoring.

To have some query normalization like in BQ one qould need to cascade
the SpanWeight.normalize(float) down to the Spans (and its containing
subSpans). But unfortunately neither is the Spans existing at this point
in time nor does the Spans concept support boosts or norms.

so how do I get the SpanOrQuery best normed to be comparable to a
BooleanQuery?

Jan


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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedDec 7, '10 at 9:58a
activeDec 7, '10 at 9:58a
posts1
users1
websitelucene.apache.org

1 user in discussion

Jan Kurella: 1 post

People

Translate

site design / logo © 2022 Grokbase