lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Getting tokens from search results. Simple concept
Date Mon, 09 Mar 2009 12:13:51 GMT
In contrib/analysis, is a payload Analyzer  
(TokenOffsetPayloadTokenFilter) that adds the offsets to each token as  
a Payload.  Then, you can use SpanQuery.getPayloadSpans() at query  
time to retrieve the payload information and decode the payload.

HTH,
Grant

On Feb 26, 2009, at 9:32 AM, HPDrifter wrote:

>
> When I get a search result based on my index, I need the exact  
> tokens which
> were identified in the index as part of the result.  Why?  I need the
> character offsets.
>
> I have a solution right now...almost, but it bugs the hell out of me  
> that I
> can say something like...
> documentHit[0].getIdentifiedTokens();
>
> Do I need to make a contribution in order to make this happen?:ninja:
>
>
> -- 
> View this message in context: http://www.nabble.com/Getting-tokens-from-search-results.--Simple-concept-tp22225364p22225364.html
> Sent from the Lucene - Java Developer mailing list archive at  
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>


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


Mime
View raw message