lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: confused by simple OR
Date Thu, 13 May 2010 16:23:54 GMT

> 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))


      

Mime
View raw message