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

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

Setting up IDE for Lucene dev - error importing JUnit

2021-07-09 Thread TK Solr
I'm trying to set up Lucene development environment. I pulled the latest to branch_8x branch and I am using the latest Idea. https://cwiki.apache.org/confluence/display/SOLR/Building+Solr+with+Gradle says 8x is now gradle based and there is not special setup is needed. But I am seeing Idea is no