This maybe what I'm looking for. I'll follow up asap.
Grant Ingersoll-6 wrote: > > 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-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-dev-h...@lucene.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-dev-h...@lucene.apache.org > > > -- View this message in context: http://www.nabble.com/Getting-tokens-from-search-results.--Simple-concept-tp22225364p22413425.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org