On Mon, Dec 31, 2007 at 05:49:10PM +0100, double wrote:
> I am using Xapian::QueryParser() to create the Query.
The flags are:
> FLAG_PHRASE | FLAG_LOVEHATE | FLAG_WILDCARD
>
> If I search, lets say for "king queen"
(without quotes), I get all documents
> with either "king" or "queen". Is
there a chance to find only documents with
> "king" and "queen" without boolean
operators (like Google)?
Try the following (or equivalent in your language):
------------------------------------------------------------
----------
query_parser.set_default_op(Xapian::Query::OP_AND);
------------------------------------------------------------
----------
J
--
/-----------------------------------------------------------
---------------
James Aylett
xapian.org
james tartarus.org
uncertaintydivision.org
_______________________________________________
Xapian-discuss mailing list
Xapian-discuss lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
a>
|