lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com.INVALID>
Subject Re: get begin/end of matched terms
Date Sun, 22 Oct 2017 01:08:39 GMT

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 <niparisco@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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message