[Xapian-discuss] Omega

Olly Betts olly at survex.com
Wed Feb 8 10:27:30 GMT 2006


On Wed, Feb 08, 2006 at 12:14:40PM +0200, David Levy wrote:
> I was asking myself this king of question this week too (regarding OR/AND
> queries in the same time through Omega).
> But actually, how do you use this operator with Omega ? Do you pass it as
> "DEFAULTOP" URL parameter ?
> I can't figure how to pass complex queries directly to Omega such as "(cool
> AND soft) OR (cool AND hard)" ?

You can pass exactly that (in a P parameter as usual).

DEFAULTOP is used between terms where no explicit operator is given.  So
you can choose whether "root login" is interpreted as "root AND login"
or "root OR login".  "DEFAULTOP=and" models what Google does.

Cheers,
    Olly



More information about the Xapian-discuss mailing list