> Are you indexing an empty value?  Or not indexing a field at all?
> -field:[* TO *] will match documents that do not have the field at all.

I'm not sure, theoretically fields with a null value (php-side) should end
up not having the field. But then again i don't think it's relevant just
yet. What bugs me is that if I add the -puid:[* TO *], all results for
puid:[0 TO *] disappear, even though I am using "OR".

Best,
Jan


> On Jan 25, 2010, at 7:02 AM, Jan-Simon Winkelmann wrote:

> > Hi there,
> >
> > i have a field defined in my schema as follows:
> >
> > <field name="puid" type="integer" indexed="true" stored="false"
> > required="false" />
> >
> > Valid values for the fields are (in theory) any unsigned integer  
> > value. Also
> > the field can be empty.
> >
> > My problem is, that if I have (puid:[0 TO *] OR -puid:[* TO *]) as  
> > filter
> > query i get 0 results, without the "-puid:[* TO *])" part i get  
> > about 6500
> > results. What am I doing wrong? I was under the impression i could  
> > find
> > empty fields with a "* TO *"
> > range?
> >
> > Thanks very much in advance!
> >
> > Best,
> > Jan
> >


Reply via email to