[Xapian-discuss] Phrase search performance

Olly Betts olly at survex.com
Mon Feb 20 21:40:16 GMT 2006


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.

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

Cheers,
    Olly



More information about the Xapian-discuss mailing list