thanks!
On Wed, May 2, 2012 at 4:43 PM, Chris Hostetter
wrote:
>
> : How do I search for things that have no value or a specified value?
>
> Things with no value...
> (*:* -fieldName:[* TO *])
> Things with a specific value...
> fieldName:A
> Things with no value or a specific val
ame:(A B C)
or
(*:* -fname:[* TO *]) OR fname:(A B C)
-- Jack Krupansky
-Original Message-
From: Jack Krupansky
Sent: Wednesday, May 02, 2012 7:52 PM
To: solr-user@lucene.apache.org
Subject: Re: syntax for negative query OR something
Oops... that is:
(-fname:*) OR fname:(A B C)
o
Oops... that is:
(-fname:*) OR fname:(A B C)
or
(-fname:[* TO *]) OR fname:(A B C)
-- Jack Krupansky
-Original Message-
From: Jack Krupansky
Sent: Wednesday, May 02, 2012 7:48 PM
To: solr-user@lucene.apache.org
Subject: Re: syntax for negative query OR something
Sounds good
clude pure wildcard that can generate a PrefixQuery:
-fname:* OR fname:(A B C)
-- Jack Krupansky
-Original Message-
From: Ryan McKinley
Sent: Wednesday, May 02, 2012 7:18 PM
To: solr-user@lucene.apache.org
Subject: syntax for negative query OR something
How do I search for things
: How do I search for things that have no value or a specified value?
Things with no value...
(*:* -fieldName:[* TO *])
Things with a specific value...
fieldName:A
Things with no value or a specific value...
(*:* -fieldName:[* TO *]) fieldName:A
..."or" if you aren't using