[Xapian-discuss] How to combine Boolean and Free Text searches.
Olly Betts
olly at survex.com
Thu May 4 13:24:01 BST 2006
On Wed, May 03, 2006 at 03:59:50PM -0700, Kevin wrote:
> How to combine Boolean and Free Text searches.
Use OP_FILTER:
query = Xapian::Query(Xapian::Query::OP_FILTER, query, filter);
> I want to perform search for pizza on Business Name but only from records
> that contains City Los Angeles and State CA.
So, assuming the obvious prefixes, that would be:
XBUSINESSpizza FILTER (XCITYlos_angeles AND XSTATEca)
Omega's docs/overview.txt explains how Omega handles this, which might
give you more insight.
Cheers,
Olly
More information about the Xapian-discuss
mailing list