lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From starz10de <>
Subject RE: lucene highlighter
Date Sun, 20 Nov 2011 13:28:30 GMT

Thanks for your useful comments:

here I could do what I want with the highlighter which work with lucene 3:

 QueryScorer scorer = new QueryScorer(query, reader, "contents"); 
          Highlighter highlighter = new Highlighter(scorer); 
          String fragment = highlighter.getBestFragment(analyzer,
"contents", contents);

I have one question, you mentioned:  „You also need contrib-memory-3.0.3.jar
to actually run your program (not for compiling)."  

Is this needed only for optimization issue? I searched in the web and I
couldn't rally find this jar. Is it available online? 


View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message