You haven't specified any "q" clause, just an "fq" clause. Try q=*:* -field:[* TO *] or q=*:*&fq=-field:[* TO *]
BTW, the logic of field:yes -field:[* TO *] makes no sense You're saying "find me all the fields containing the value "yes" and remove from that set all the fields containing any value at all".... Best Erick On Fri, Nov 25, 2011 at 7:28 AM, Phil Hoy <p...@friendsreunited.co.uk> wrote: > Hi, > > Is it possible to constrain the results of a query to return docs were a > field contains no value or a particular value? > > I tried ?fq=(field:yes OR -field:[* TO *]) but I get no results even though > queries with either ?fq=field:yes or ?fq=-field:[* TO *]) do return results. > > > Phil >