1) strictly speaking there is no such thing as a NULL field value in Solr
-- there are fields that have a value and fields that don't and as
mentioned yourField:[* TO *] will give you all docs that have a value in
the yourField field.
2) http://people.apache.org/~hossman/#threadhijack
Thread H
I think you can do field:["" TO *] to grab everything that is not null.
-Mike
John E. McBride wrote:
Hello All,
I need to run a query which asks:
field = NOT NULL
should this perhaps be done with a filter?
I can't find out how to do NOT NULL from the documentation, would
appreciate any advi
try:
field:[* TO *]
On Oct 15, 2008, at 9:44 AM, John E. McBride wrote:
Hello All,
I need to run a query which asks:
field = NOT NULL
should this perhaps be done with a filter?
I can't find out how to do NOT NULL from the documentation, would
appreciate any advice.
Thanks,
John