Kevin
2006-May-04 09:11 UTC
[Xapian-discuss] How to combine Boolean and Free Text searches.
How to combine Boolean and Free Text searches. I would like to ask you whether it is possible to combine Boolean and Free Text searches using Xapian. Example: Data contains the following type of fields: - Business Name - City - State I want to perform search for pizza on Business Name but only from records that contains City Los Angeles and State CA. Do we have this capability in Xapian? If yes, can we see some example. Thanks, Kevin
Olly Betts
2006-May-04 13:24 UTC
[Xapian-discuss] How to combine Boolean and Free Text searches.
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