lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: Span Query/Slop distance
Date Mon, 30 Aug 2010 13:26:29 GMT

On Aug 26, 2010, at 12:47 PM, Shashi Kant wrote:

> Hello, I am familiar with the SpanQuery construct and set an upper Slop limit.
> 1. But when I get the hit results, is there any way I can access the
> actual slop and the span text itself in that particular hit.

> 2. Also it is possible to have multiple matches within the same
> document. So how do I access the span text and the corresponding slop
> for the multiple matches with the same doc?

It is possible.  When you walk the Spans, the doc() method will tell you what doc you are

Grant Ingersoll Apache Lucene/Solr Conference, Boston Oct 7-8

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message