Re: find the collection of tokens matching a query in Lucene 8.6.3

2021-07-09 Thread Laurent Jakubina
Hi, Never done in myself, but from the doc : >From the query ( https://lucene.apache.org/core/8_6_3/core/org/apache/lucene/search/Query.html), you can retrieve the Weight ( https://lucene.apache.org/core/8_6_3/core/org/apache/lucene/search/Weight.html), from which you can access the Matches ( http

find the collection of tokens matching a query in Lucene 8.6.3

2021-07-09 Thread Trevor Nicholls
Problem: I have indexed the filepath and the content of thousands of documents and can successfully query the index on the text to return a collection of filepaths. Now I need to create a collection of the tokens in the index which matched the query. I can see that there are solutions to a rela