>> 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".
>
>- operator does not work with OR operator as you think. 
>Your query can be re-written as (puid:[0 TO *] OR (*:* -puid:[* TO *]))
>
>This new query satisfies your needs? And more importantly does
type="integer"  supports correct numeric range queries? In Solr 1.4.0 range
queries work >correctly with type="tint".


Strangely enough when I rewrote my query to ((puid:[0 TO *]) OR (-puid:[* TO
*])) I did actually get results. Weather they were correct I currently
cannot verify properly since my index does not actually contain null values
for the column. I will however check out if your query gets me any different
results :)
Speaking of your query, I don't quite understand what the *:* does there and
how it gets parsed.

Best
Jan

Reply via email to