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 Ryan McKinley <ry...@gmail.com> on 2007/03/16 23:17:20 UTC
match any field value? field:*?
Is it possible to search for all documents with a field?
I have documents with a bunch of fields and a field for 'error'
(string field with the actual error). Is it possible do search for
documents that have an error? Considering the new *:* syntax, i would
guess something like "error:*"
Do i need a separate boolean field that marks 'hasErrors' or something
like that? If so, is there a clean way to do this with copyField?
thanks for any pointers
ryan
Re: match any field value? field:*?
Posted by Ryan McKinley <ry...@gmail.com>.
thank you thank you
that does it.
Re: match any field value? field:*?
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Mar 16, 2007, at 6:17 PM, Ryan McKinley wrote:
> Is it possible to search for all documents with a field?
Yup...
> I have documents with a bunch of fields and a field for 'error'
> (string field with the actual error). Is it possible do search for
> documents that have an error? Considering the new *:* syntax, i would
> guess something like "error:*"
error:[* TO *] does the trick... or all docs without an error is -
error:[* TO *]
Erik