Salve,
Thank you very much for your kind answer. Spelling correction works very
well now. I have just one more question.
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)?
Thank you very much
Markus
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
James Aylett schrieb:> Try the following (or equivalent in your language): > ---------------------------------------------------------------------- > query_parser.set_default_op(Xapian::Query::OP_AND); > ---------------------------------------------------------------------- >Hi James, Thank you very much. Markus