Thorsten - there is support for the Lucene Highlighter built into Solr. You can see details of how to use it here:
        <http://wiki.apache.org/solr/HighlightingParameters>
  Erik


On Jan 2, 2007, at 7:26 AM, Thorsten Scherler wrote:

Hi all,

I need to implement a summary function with solr like there is in nutch. Basically it returns x words before and after the query term to show the
content where the term is embedded (like as google does).

In nutch this functionality is provided by
http://svn.apache.org/viewvc/lucene/nutch/trunk/src/plugin/summary- basic/
and especially
http://svn.apache.org/viewvc/lucene/nutch/trunk/src/plugin/summary- basic/src/java/org/apache/nutch/summary/basic/BasicSummarizer.java? view=markup
There is another similar plugin/class in
http://svn.apache.org/viewvc/lucene/nutch/trunk/src/plugin/summary- lucene/
Is there something similar in solr?

If not which is the best way to implement this functionality?

TIA for any tips.

salu2


Reply via email to