AW: AW: Searching for empty fields possible?

2010-01-26 Thread Jan-Simon Winkelmann
>> I'm not sure, theoretically fields with a null value >> (php-side) should end >> up not having the field. But then again i don't think it's >> relevant just >> yet. What bugs me is that if I add the -puid:[* TO *], all >> results for >> puid:[0 TO *] disappear, even though I am using "OR". > >-

Re: AW: Searching for empty fields possible?

2010-01-25 Thread Ahmet Arslan
> I'm not sure, theoretically fields with a null value > (php-side) should end > up not having the field. But then again i don't think it's > relevant just > yet. What bugs me is that if I add the -puid:[* TO *], all > results for > puid:[0 TO *] disappear, even though I am using "OR". - operator

AW: Searching for empty fields possible?

2010-01-25 Thread Jan-Simon Winkelmann
> Are you indexing an empty value? Or not indexing a field at all? > -field:[* TO *] will match documents that do not have the field at all. I'm not sure, theoretically fields with a null value (php-side) should end up not having the field. But then again i don't think it's relevant just yet. Wha

Re: Searching for empty fields possible?

2010-01-25 Thread Erik Hatcher
Are you indexing an empty value? Or not indexing a field at all? -field:[* TO *] will match documents that do not have the field at all. Erik On Jan 25, 2010, at 7:02 AM, Jan-Simon Winkelmann wrote: Hi there, i have a field defined in my schema as follows: Valid values for the f

Searching for empty fields possible?

2010-01-25 Thread Jan-Simon Winkelmann
Hi there, i have a field defined in my schema as follows: Valid values for the fields are (in theory) any unsigned integer value. Also the field can be empty. My problem is, that if I have (puid:[0 TO *] OR -puid:[* TO *]) as filter query i get 0 results, without the "-puid:[* TO *])" part i g

Re: Searching for empty fields

2008-05-07 Thread Chris Hostetter
: (*:* AND -color:[* TO *]) the *:* shouldn't be neccessary in Solr, fq=-color:[* TO *] should work just fine. : > One of the fields in my database is color. It can either contain a value : > (blue, red etc) or be blank. When I perform a search with facet counts on, I : > get a count for "_empt

Re: Searching for empty fields

2008-05-07 Thread Erick Erickson
the really simple way is to index "none" for fields that are empty then just search on color:none. On Tue, May 6, 2008 at 9:06 PM, Brendan Grainger <[EMAIL PROTECTED]> wrote: > Hi, > > Not sure if this is what you want, but to search for 'empty' fields we use > something like this: > > (*:*

Re: Searching for empty fields

2008-05-06 Thread Brendan Grainger
Hi, Not sure if this is what you want, but to search for 'empty' fields we use something like this: (*:* AND -color:[* TO *]) Hope that helps. Brendan On May 6, 2008, at 6:43 PM, Daniel Andersson wrote: Hi (again) One of the fields in my database is color. It can either contain a valu

Searching for empty fields

2008-05-06 Thread Daniel Andersson
Hi (again) One of the fields in my database is color. It can either contain a value (blue, red etc) or be blank. When I perform a search with facet counts on, I get a count for "_empty_". How do I go about searching for this? I've tried color:"" which gives me an error. Same with color:.