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 to the found terms. How can I fetch the matched terms that were passed by the query object? Then I could fetch the term statistics that is anyway provided by the analyzer or indexer. I've found the MatchesIterator interface and FilterMatchesIterator class but was not able to use it. Thank you! Ned