On Fri, Apr 24, 2009 at 9:08 PM, Rakesh Sinha <rakesh.use...@gmail.com>wrote:

>  How do I specify boolean operators on a given field to search with
> the 'q' parameter.
>
> For a given index - I have a different documents , document 1 with a
> field course:"Applied Statistics"
>  document 2 with a field course: "Applied Probability"
> document 3 with a field course:"Discrete math"
>
> I need to search for those documents with field course containing
> statistics or probability
>
> When I submit q=course:"statistics or probability"  , it searches for
> those documents with the exact match of the string (with
> debugQuery=true , option ) .  How do pass in a single string that is
> directly taken by the query parser without breaking it myself ( I can
> achieve the above by q=course:statistics or q=course:probability - but
> that would I do the parsing myself but would like to delegate the
> parsing to Lucene though).
>

You can query it like q=course:(statistics probability) or by
q=course:statistics course:probability

I'm assuming that you have not changed the default operator (OR) in
schema.xml
-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to