Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

is there an efficient way of finding locations of highlighted fragments in original text?

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


izavorin at caci

Mar 19, 2012, 1:41 PM

Post #1 of 1 (113 views)
Permalink
is there an efficient way of finding locations of highlighted fragments in original text?

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

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.