Thank you Jack, that works. Kiran
On Thu, Sep 27, 2012 at 5:18 PM, Jack Krupansky <j...@basetechnology.com>wrote: > Add a "*:*" before the negative query. > > (*:* -Group:[* TO *]) OR Group:(X OR Y OR Z) > > -- Jack Krupansky > > -----Original Message----- From: Kiran J Sent: Thursday, September 27, > 2012 8:07 PM To: solr-user@lucene.apache.org Subject: Filter query not > null or in list > Hi everyone, > > I have a group field which restricts the permission for each user. A user > can belong to multiple groups. A document can belong to only Group (ie) non > multi valued. There are some documents which are unrestricted, hence group > id is null. How can I use the filter for a given user so that it includes > results from both Group=NULL and Group=(X or Y or Z) ? I try something like > this, but doesnt work: > > -Group:[* TO *] OR Group:(X OR Y OR Z) > > Note that the Group is a UUID field. Is it possible to assign a default > UUID value ? > > Any help is much appreciated. > > Thanks > Kiran >