Hi Nicolas, With SpanQuery family, it is possible to retrieve spans (index/position information)
Also, you may find luwak relevant. https://github.com/flaxsearch/luwak Ahmet On Sunday, October 22, 2017, 1:16:01 AM GMT+3, Nicolas Paris <nipari...@gmail.com> wrote: Hi I am looking for a way to get the index of matched terms. Right now, I haven't found any trivial solution. I ve found the highlighter code[1] that looks to do the job. Before I start to code that myself, user may already did that and point me in the right direction. Thanks [1] https://github.com/apache/lucene-solr/blob/0971fe691aa9446ab6f4442b6d79ae1c81e31594/lucene/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org