You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Nicolas Paris <ni...@gmail.com> on 2017/10/21 22:15:48 UTC

get begin/end of matched terms

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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: get begin/end of matched terms

Posted by Ahmet Arslan <io...@yahoo.com.INVALID>.
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 <ni...@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org