[Xapian-discuss] phraze recognition, intersection
Lucian Nicolescu
lucian at tonicagency.com
Wed Apr 4 22:03:23 BST 2007
Thanks for the answer!
I partially solved the problem by doing some extra queries:
Using the input text I searched for a list of related postings. Then got the
most relevant result from the index using the input text and matched
postings in the relevant result against the ones in the related list. Took
out compositions of minimum 2 postings that were on consecutive positions.
This way I end up with a list of 2, sometimes 3 postings that actually make
sense and are related to the initial query (even if they are stemmed).
That is my solution in case anyone might be interested.
Btw: I read a couple of posts on highlighting the results of a query; from
what I can tell there is no solution, right? I am using Xapian with the
python bindings, not Omega.
Thanks,
Lucian Nicolescu
> -----Original Message-----
> From: Olly Betts [mailto:olly at survex.com]
> Sent: Wednesday, April 04, 2007 12:14 PM
> To: Lucian Nicolescu
> Cc: xapian-discuss at lists.xapian.org
> Subject: Re: [Xapian-discuss] phraze recognition, intersection
>
> On Tue, Apr 03, 2007 at 12:35:16AM +0300, Lucian Nicolescu wrote:
> > I have the folowing info: a xapian text document postings
> and terms and a
> > list of search phrazes.
> > I need to identify any of the phrazes from my list that are
> present in my
> > document and link them to a certain location ... Read some
> of the topics on
> > this mailing list as well as the documentation but cannot
> determine a proper
> > way of doing this or if it's "doable".
>
> There's not currently support for this (other than being able to
> determine which documents a phrase is present in by running a query).
> It would certainly have uses though.
>
> > I am thinking phrazes can also be stored in a separate
> index ... Is there a
> > way of "intersecting" them ...?
>
> Sorry, I'm not really sure what you're suggesting.
>
> Cheers,
> Olly
>
More information about the Xapian-discuss
mailing list