lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: How to extract 15/20 words around the matched query after getting results from lucene searcher?
Date Tue, 26 May 2009 18:54:24 GMT

On May 25, 2009, at 1:34 AM, KK wrote:

> Also people are talking about someting called spanQueries/ 
> termvectors etc to
> use for this purpose. I'm still to get the exact idea of how to do  
> this.

I just blogged up a quick little demo (including full code) of this at http://www.lucidimagination.com/blog/2009/05/26/accessing-words-around-a-positional-match-in-lucene/

Please excuse any mistakes on my part as I threw it together pretty  
quickly today.

HTH,
Grant


--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
using Solr/Lucene:
http://www.lucidimagination.com/search


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


Mime
View raw message