Boolen operators

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Boolen operators

Manish Singh
Is multiple boolean operators valid in lucene query.
Example  str1 OR OR str2
             str1 OR AND str2
are these queries valid?
Reply | Threaded
Open this post in threaded view
|

Re: Boolen operators

Otis Gospodnetic-2
Hi,

They are not valid and my guess is that if you feed them to QueryParser you'll get an exception.

A better place to ask questions about Lucene Java is on java-user list.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch


----- Original Message ----

> From: Manish Singh <[hidden email]>
> To: [hidden email]
> Sent: Thursday, May 22, 2008 5:45:14 AM
> Subject: Boolen operators
>
>
> Is multiple boolean operators valid in lucene query.
> Example  str1 OR OR str2
>              str1 OR AND str2
> are these queries valid?
> --
> View this message in context:
> http://www.nabble.com/Boolen-operators-tp17400872p17400872.html
> Sent from the Lucene - General mailing list archive at Nabble.com.