Lucene Search with relational operators

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

Lucene Search with relational operators

GokulAnand
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 ??
Reply | Threaded
Open this post in threaded view
|

Re: Lucene Search with relational operators

Erick Erickson
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 <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>