Lucene TermFrequenciesVector

What will I get if I call IndexReader.getTermFrequenciesVector(...)into the index created with the option TermVector.YES?

+3
source share
2 answers

the documentation already responds to this, as Xodorap notes in the comment.

The returned object TermFreqVectorcan retrieve which terms (words created by your analyzer) the field contains and how many times each of these terms exists in this field.

TermFreqVector TermPositionVector, TermVector.WITH_OFFSETS, TermVector.WITH_POSITIONS TermVector.WITH_POSITIONS_OFFSETS. GetTermPositions, , , GetOffsets, , . Store.YES .

Contrib Lucene .

+3

. .

0

Source: https://habr.com/ru/post/1786995/


All Articles