[Xapian-discuss] Phrase search performance

Alex Deucher alexdeucher at gmail.com
Mon Feb 20 21:53:35 GMT 2006


On 2/20/06, Olly Betts <olly at survex.com> wrote:
> On Mon, Feb 20, 2006 at 04:14:50PM -0500, Alex Deucher wrote:
> > my query was: Xapian::Query((FTEXT:main PHRASE 2 FTEXT:channel))
> > FTEXT:main term frequency: 37983
> > FTEXT:channel term frequency: 16106
>
> OK, so pretty common terms if the database is ~100000 documents.  This
> is likely to be a slow case, but I'd hope for a few seconds at worst,
> not a few minutes.
>
> I have some speed ups for phrase searching planned, but from your other
> message I think the main issue here is that you need more RAM.

I tried it on a box with 2 GB of RAM and it's down to about 1 minute.
so RAM definitely helps.

>
> > > For Perl, see the "new_term" method of "Search::Xapian::Query" - added
> > > in 0.9.2.3.
> >
> > Is there any documentation on that Perl code anywhere?  the stuff is
> > CPAN is pretty limited.
>
> It's improved a lot in the last few releases (and will improve in the
> next too).  Most classes and methods now have POD documentation.
>

Excellent!

Thanks Olly!

> Cheers,
>     Olly
>



More information about the Xapian-discuss mailing list