You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Norskog, Lance" <la...@divvio.com> on 2007/07/06 05:50:21 UTC
Checking for empty fields
I understand that I cannot query on the 'null' value for a field, and so
I should make null fields -1 instead.
About dynamic fields: is there a way to query for the existence of a
dynamic field?
Thanks,
Lance Norskog
Divvio, Inc.
Re: Checking for empty fields
Posted by Yonik Seeley <yo...@apache.org>.
On 7/5/07, Norskog, Lance <la...@divvio.com> wrote:
> I understand that I cannot query on the 'null' value for a field, and so
> I should make null fields -1 instead.
>
> About dynamic fields: is there a way to query for the existence of a
> dynamic field?
You could use an open-ended range query:
For must exist: myfield:[* TO *]
For must not exist: -myfield:[* TO *]
-Yonik