Get the search term Hits (number of entries) per document in Lucene

Can someone suggest me a better way to get hits (not occurrences) of a word on a document in Lucene? ..

+1
source share
2 answers

Lucene uses an index rather than a document-based index. To get the number of terms per document:

+5
+1

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


All Articles