Awesome that works, thanks Ahmet. 

-Kallin Nagelberg

-----Original Message-----
From: Ahmet Arslan [mailto:iori...@yahoo.com] 
Sent: Thursday, May 13, 2010 12:24 PM
To: solr-user@lucene.apache.org
Subject: Re: confused by simple OR


> I must be missing something very
> obvious here. I have a filter query like so:
> 
> (-rootdir:somevalue)
> 
> I get results for that filter
> 
> However, when I OR it with another term like so I get
> nothing:
> 
> ((-rootdir:somevalue) OR (rootdir:somevalue AND
> someboolean:true))
> 

Simply you cannot combine NOT and OR clauses like you did. It should be 
something like: 

((+*:* -rootdir:somevalue) OR (rootdir:somevalue AND someboolean:true))


      

Reply via email to