On Monday 24 April 2006 16:24, Vishal Bathija wrote:
> How do I get the spans (getSpans()) if I use the SpanNearQuery as a
> clause (subquery) in a BooleanQuery

You can't normally. The Spans of the subqueries are used to compute the scores
of each matching document, via SpanScorer and BooleanScorer2.
Boolean queries do not have Spans.

Regards,
Paul Elschot

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

Reply via email to