lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilya Zavorin <izavo...@caci.com>
Subject is there an efficient way of finding locations of highlighted fragments in original text?
Date Mon, 19 Mar 2012 20:41:00 GMT
Hi,

Is there an efficient way to find where a highlighted fragment is located in the original
text stream? Of course, I can first find a fragment using Highlighter.getBestFragments() and
then search for the fragment (without the "<B>"s) using Java's substring search. But
is there a way to do it faster using Lucene's core or Highlighter machinery?

Thanks

Ilya Zavorin




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