You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Igor Shalyminov <is...@yandex-team.ru> on 2013/10/04 20:13:18 UTC

Accessing TermVector content at the result page building stage

Hello!

I need to access token position and payload info during the search result page building. I need to do this for 10 documents max, so retrieving TermVectors is totally OK for me.
Say, I retrieve it for one document:

Terms  tv = _indexDirectoryReader.getTermVector(0, "wordform");

>From the debugger I can see that all needed data is inside the tv: positions, payloadBytes, payloadIndex.
How do I acces them from my code?

-- 
Best Regards,
Igor

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