First, this is better asked on the Solr user's list, see: http://lucene.apache.org/solr/discussion.html
Second, you haven't given us anything to go on. What do you expect? What are your inputs? What are your actual outputs? Did you attach &debug=query to the URL and examine the parsed query? You might review: http://wiki.apache.org/solr/UsingMailingLists Third, the query language is not strictly boolean logic, see: http://searchhub.org/dev/2011/12/28/why-not-and-or-and-not/ Best, Erick On Tue, Nov 26, 2013 at 10:26 AM, Carlos Bonilla <[email protected]>wrote: > Hi, > I'm running a query that looks like: > > *fieldA:"blabla" OR NOT fieldB:[100 to *]* > > but in this way I get wrong results. However If I convert it into > > *NOT(NOT fieldA:"blabla" AND fieldB:[100 to *])* > > I get the expected (and correct) results. > > I also found there is a post about this: > http://stackoverflow.com/questions/634765/using-or-and-not-in-solr-query > > Could anyone explain to me why this happens? > > Thanks. > >
