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

Shen Li te_quira at hotmail.com
Fri Mar 25 16:51:18 GMT 2011


Thanks, Olly. 

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.

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. 

Best, 
Shen


> Date: Fri, 25 Mar 2011 04:34:06 +0000
> From: olly at survex.com
> To: te_quira at hotmail.com
> CC: xapian-devel at lists.xapian.org
> Subject: Re: [Xapian-devel] how to change the default operator?
> 
> On Fri, Mar 25, 2011 at 06:04:26AM +0800, Shen Li wrote:
> > Thanks very much for your advice! I've managed to explicitly set the
> > default operator each time with php binding instead of changing the
> > Xapian core.
> 
> Incidentally, OR as the default operator does seem like the wrong choice
> now (though it was reasonable 10+ years ago when we chose it).  It's
> just rather disruptive to change now.
> 
> I've been wondering if it's something we should change for a Xapian 2
> release though.  There are likely to be API incompatibilities there
> anyway, and this one has an easy fix which works with the current API
> (i.e. setting the operator to OR explicitly).  I suspect that almost
> everyone sets it to AND anyway, so few people would be affected, but
> it would give us the saner default going forwards.
> 
> > However, I'm still wondering that whether it's possible
> > to use multiple operators like a operators chain in queryparser. And
> > if it is, how should I implement that? I really appreciate your help
> > and maybe some reference would be even better!
> 
> I'm not sure what you mean by an "operators chain" - can you give an
> example?
> 
> Cheers,
>     Olly
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20110326/ca100920/attachment.htm>


More information about the Xapian-devel mailing list