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.

http://www.lucidimagination.com/blog/2009/05/26/accessing-words-around-a-positional-match-in-lucene/

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


--------------------------
Grant Ingersoll
http://lucenerevolution.org Apache Lucene/Solr Conference, Boston Oct 7-8


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