You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by GokulAnand <go...@gmail.com> on 2008/02/05 06:23:56 UTC
Lucene Search with relational operators
Hi all,
When i do a search ( lucene ) with the combination of relational operators,
it does not get the required result.
ie, when the query is like ::
i) A and B or C, it fetches the records for only (A and B) combination
rejecting C ( OR operator )
ii) A or B and C, it fetches the records for only (B and C) combination
rejecting A ( OR operator )
Why is that behaving tlike this ??
--
View this message in context: http://www.nabble.com/Lucene-Search-with-relational-operators-tp15283742p15283742.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Lucene Search with relational operators
Posted by Erick Erickson <er...@gmail.com>.
Did you see this page on the Wiki?
http://wiki.apache.org/lucene-java/BooleanQuerySyntax
Best
Erick
On Feb 5, 2008 12:23 AM, GokulAnand <go...@gmail.com> wrote:
>
> Hi all,
>
> When i do a search ( lucene ) with the combination of relational
> operators,
> it does not get the required result.
> ie, when the query is like ::
>
> i) A and B or C, it fetches the records for only (A and B) combination
> rejecting C ( OR operator )
> ii) A or B and C, it fetches the records for only (B and C) combination
> rejecting A ( OR operator )
>
> Why is that behaving tlike this ??
> --
> View this message in context:
> http://www.nabble.com/Lucene-Search-with-relational-operators-tp15283742p15283742.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>