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 David Whalen <dw...@enr-corp.com> on 2007/09/06 22:48:51 UTC
searching where a value is not null?
Hi all.
I'm trying to construct a query that in pseudo-code would read
like this:
field != ''
I'm finding it difficult to write this as a solr query, though.
Stuff like:
NOT field:()
doesn't seem to do the trick.
any ideas?
dw
Re: searching where a value is not null?
Posted by Yonik Seeley <yo...@apache.org>.
On 9/6/07, David Whalen <dw...@enr-corp.com> wrote:
> Hi all.
>
> I'm trying to construct a query that in pseudo-code would read
> like this:
>
> field != ''
>
> I'm finding it difficult to write this as a solr query, though.
> Stuff like:
>
> NOT field:()
>
> doesn't seem to do the trick.
>
> any ideas?
perhaps field:[* TO *]
-Yonik