List Info

Thread: "and" without boolean operators




"and" without boolean operators
user name
2007-12-31 10:49:10
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
_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss

Re: "and" without boolean operators
user name
2007-12-31 11:14:50
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
  jamestartarus.org                              
uncertaintydivision.org

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss

Re: "and" without boolean operators
user name
2007-12-31 11:36:59
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
_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )