tHi Mikhail,
I've finally implemented in this way. Sorry for the delayed answer.
TopDocs topDocs = this.searcher.search(query, maxResults);
Weight weight =
query.rewrite(this.searcher.getIndexReader()).createWeight(this.searcher,
ScoreMode.TOP_DOCS, 1.0f);
for (ScoreDoc scoreDoc : topDocs.sc
Hi Mikhail,
I don't see the matches `searcher.matches(topDocs.scoreDocs[i].doc,
"fieldName", query);` method exposed. I'm using lucene core 8.11.2 and
currently I cannot upgrade to 9.0.0 or later.
Any ideas? Which API version are you referring to?
Thanks.
Ned
V
Hello Mikhail,
Great, thanks for the very fast response! The link that you provided is very
useful and informative.
Though, I have an understanding issue. After I have searched for a search term,
I get always TopDocs that represent the found documents. In my understanding
there is no relation