lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donna L Gresh <gr...@us.ibm.com>
Subject RE: How do i get a text summary
Date Thu, 28 Feb 2008 13:19:51 GMT
I think you may want to look into the Highlighter. It allows you to show 
the "relevant" bits of the document which contributed to the document 
being matched to the query. It does a pretty good job. Of course it does 
not create a "summary" but it does give you a good idea of why the 
document was hit.

http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//org/apache/lucene/search/highlight/Highlighter.html

Donna Gresh


<spring@gmx.eu> wrote on 02/28/2008 07:42:40 AM:

> > If you want something from an index it has to be IN the 
> > index. So, store a
> > summary field in each document and make sure that field is part of the
> > query.
> 
> And how could one create automatically such a summary?
> Taking the first 2 lines of a document makes not always much sense.
> How does google this?
> 
> Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 

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