On Aug 9, 2009, at 5:10 AM, Eran Sevi wrote:

Thanks for the answer.

I tried to further understand the weight and score mechanism when running a
span query search.
I noticed that indeed the SpanScorer and SpanWeight are being called and some score is returned but it seems to me that these basic implementations
are more appropriate for the basic SpanTermQuery.
For the other types of span queries, the inner queries scores and weights are not taken into account - for example if I run a simple SpanOrQuery and boost one of it's child SpanTermQuery, the boost is not taken into account.

It seems to me that some recursive calculation is required in order to take
into account all the weights and scores of the span's sub queries.
I'm trying to come up with a correct implementation for SpanOrQuery,
SpanNearQuery, SpanNotQuery based on similiar calculations of BooleanQuery.

Do you have a better idea on how to achieve the correct scoring? the score calculations are quite complex for each case of span queries so any help is
appreciated.


This will need to be implemented. It's funny, but I didn't realize this was the case until the other day when I was looking deeper into payload capabilities.

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

Reply via email to