[Xapian-discuss] About Resume
Aleph Thomas
alepht at gmail.com
Wed Nov 7 17:56:13 GMT 2007
In general, I not can get the resume use xapian? for example if I have
this text:
" This is a new test for search in xapian."
I search for example for "new", I need that return "is a new test" or
some similar, and the same for many words
thanks
On 11/7/07, Jim <jim at fayettedigital.com> wrote:
> Aleph Thomas wrote:
> > I need know if I can make resume of the document, and how, but I need
> > that in the resume appear the words that I am find. An need know too
> > if this can be do using omega.
> >
> > thanks
> >
> > _
> I'm going to guess that by "resume" you mean a sample of the document
> similar to what Google presents. If that is true, then omega does not
> have the ability to extract sample data from the original source and
> highlight the search terms.
>
> I have implemented this in a perl script. The method I used was to call
> omega using the FMT=xml option and parse the returned xml document. In
> the data I indexed is a field that points to the original file from
> which I indexed. For each "hit" I extract that file name, read the file
> and generate a sample with phrases containing the search terms. I
> arbitrarily truncate the data without thought to trying to rate the
> phrases as to their relevance.
>
> Hope that helps you get started.
>
> Jim.
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>
More information about the Xapian-discuss
mailing list