[Xapian-devel] how to change the default operator?

Olly Betts olly at survex.com
Sat Mar 26 05:44:16 GMT 2011


On Sat, Mar 26, 2011 at 12:51:18AM +0800, Shen Li wrote:
> The eruptions of information in the last decade have definitely
> expanded the dimension and size of the data collection to an extremely
> great extent. That makes it even harder to reach out to something
> we're really looking for, and possibly that's why we now need more
> exact filter to get rid of the nonsense.

A (probably related) factor is that users expect AND as the default,
because it is now pretty much universally the default for search.

> As for "operator chain", I intended to mean a combination of maybe 2-3
> operators applied in a particular order. For instance, use NEAR first
> and then use FILTER to narrow down. I know this could be expensive in
> time and efficiency, but I just want to try whether it could work and
> what could be the possible result. 

I still don't understand what you're suggesting (particular as FILTER
will match more documents than NEAR).  Can you give an example of how
this would work?

Cheers,
    Olly



More information about the Xapian-devel mailing list