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 get the results-set you were expected.
You might then want to sort on that field, and this time my previous
answer could help ;-).
Sorry for confusing you!
Le 04/01/2012 09:32, Tanguy Moal a écrit :
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.5)
Hope this helps,
--
Tanguy
Le 04/01/2012 06:33, Christopher Childs a écrit :
-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.
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 feature this field, but what I want is for the filter query to
act upon those documents that do have the field but also to return
documents that don't have it at all.
Is this a possibility?
Best,
Allistair