Is there a fast, accurate Highlighter for Lucene?

前端 未结 3 418
萌比男神i
萌比男神i 2021-01-01 07:42

I\'ve been using the (Java) Highlighter for Lucene (in the Sandbox package) for some time. However, this isn\'t really very accurate when it comes to matching the correct te

3条回答
  •  抹茶落季
    2021-01-01 08:06

    You could look into using Solr. http://lucene.apache.org/solr

    Solr is a sort of generic search application that uses Lucene and supports highlighting. It's possible that the highlighting in Solr is usable as an API outside of Solr. You could also look at how Solr does it for inspiration.

提交回复
热议问题