You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Thorsten Scherler <th...@juntadeandalucia.es> on 2007/01/02 13:26:25 UTC

Is there a BasicSummarizer for solr?

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


Re: Is there a BasicSummarizer for solr?

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
On Tue, 2007-01-02 at 08:14 -0500, Erik Hatcher wrote:
> 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
> 

:)  

Cheers Erik, with this information and a small change in my schema
changed stored="false" to stored="true" on my main content, I get
exactly what I needed.

Now I have to see the effect of storing the content in the index
regarding size and response time.

Thanks again.

salu2

> 
> 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
> 


Re: Is there a BasicSummarizer for solr?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
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