Hi Guys,

I've been trying various combinations but unable to perform a "OR" query for
a specific field in my solr schema.

I have a string field called myfield and I want to return all documents that
have this field which either matches "abc" or  "xyz"

So all records that have myfield=abc and all records that have myfield=xyz
should be returned (union)

What should my query be?  I have tried (myfield=abc OR myfield=xyz) which
works, but only returns all the documents that contain xyz in that field,
which I find quite weird. I have tried running this as fq query as well but
same result!

It is such a simple thing but I can't find right syntax after going through
a lot of documentation and searching.

Will appreciate any quick reply or examples, thanks very much.

Ravish

Reply via email to