: -filterMinutes:[* TO *] should return documents that do not have a value
assigned to that field.
correct, but combining a negative filter with another filter can be
confusing for people, you can't just use this...
fq=filterMinutes:[* TO 50] -filterMinutes:[* TO *]
..because it finds hte s
I think I misunderstood your issue, what I said applies only to sorting
on that field.
As soon as you perform a filter by querying a particuliar field,
documents without a value in that field are filtered out.
Christopher is right in is answer, and therefor by ORing both filters
you should g
Hello,
If the number stored is not in a string field, you will need solr >= 3.5
to perform what you want.
Since solr 3.5 it's possible to set the attribute sortMissingLast or
sortMissingFirst to true, within the field definition (an example is
available in the schema.xml provided with solr 3
-filterMinutes:[* TO *] should return documents that do not have a value
assigned to that field.
On Jan 3, 2012, at 11:30 PM, Allistair Crossley wrote:
> Evening all,
>
> A subset of my documents have a field, filterMinutes, that some other
> documents do not. filterMinutes stores a number.
>
Evening all,
A subset of my documents have a field, filterMinutes, that some other documents
do not. filterMinutes stores a number.
I often issue a query that contains a filter query range, e.g.
q=filterMinutes:[* TO 50]
I am finding that adding this query excludes all documents that do not fe