Re: OR/NOT query syntax

2009-03-12 Thread Yonik Seeley
On Wed, Mar 11, 2009 at 9:56 PM, Andrew Wall wrote: > I'm attempting to write a solr query that ensures that if one field has a > particular value that another field also have a particular value. I've > arrived at this syntax, but it doesn't seem to work correctly. > > ((myField:superneat AND myOt

Re: OR/NOT query syntax

2009-03-12 Thread Jonathan Haddad
I might be wrong on this, but since you can't do a query that's just a NOT statement, this wouldn't work either. I believe the NOT must negate results of a query, not the entire dataset. On Wed, Mar 11, 2009 at 6:56 PM, Andrew Wall wrote: > I'm attempting to write a solr query that ensures that

OR/NOT query syntax

2009-03-11 Thread Andrew Wall
I'm attempting to write a solr query that ensures that if one field has a particular value that another field also have a particular value. I've arrived at this syntax, but it doesn't seem to work correctly. ((myField:superneat AND myOtherField:somethingElse) OR NOT myField:superneat) either op