Re: Is it possible to search for the empty string?

2015-05-21 Thread Chris Hostetter
: Subject: Re: Is it possible to search for the empty string? : : Not out of the box. : : Fields are parsed into tokens and queries search on tokens. An empty : string has no tokens for that field and a missing field has no tokens : for that field. that's a missleading over simplificati

Re: Is it possible to search for the empty string?

2015-05-18 Thread Shawn Heisey
On 5/18/2015 7:34 PM, Walter Underwood wrote: > Not out of the box. > > Fields are parsed into tokens and queries search on tokens. An empty string > has no tokens for that field and a missing field has no tokens for that field. > > If you really need to do this, then you’ll need to turn the emp

Re: Is it possible to search for the empty string?

2015-05-18 Thread Walter Underwood
Not out of the box. Fields are parsed into tokens and queries search on tokens. An empty string has no tokens for that field and a missing field has no tokens for that field. If you really need to do this, then you’ll need to turn the empty string in a special token that means “empty string”, c

Re: Is it possible to search for the empty string?

2015-05-18 Thread Lianyi Han
Sounds interesting to test it out. I only played with 5.10 recently on empty string search,it seems that *field:""* (double quotes) works, but not *field:''* ( single quotes ) Best, -lianyi "Unity of knowing and doing" On Mon, May 18, 2015 at 9:21 PM, Shawn Heisey wrote: > On 5/18/2015 7:16

Re: Is it possible to search for the empty string?

2015-05-18 Thread Shawn Heisey
On 5/18/2015 7:16 PM, Lianyi Han wrote: > Would field:"" works in your case? > > Best, > On Mon, May 18, 2015 at 8:56 PM Shawn Heisey wrote: > >> Can I search for the empty string? This is distinct from searching for >> documents that don't have a certain fieldat all, which I can already do >>

Re: Is it possible to search for the empty string?

2015-05-18 Thread Lianyi Han
Would field:"" works in your case? Best, On Mon, May 18, 2015 at 8:56 PM Shawn Heisey wrote: > Can I search for the empty string? This is distinct from searching for > documents that don't have a certain fieldat all, which I can already do > with a clause of "*:* -field:[*TO *]"in my query. > >

Is it possible to search for the empty string?

2015-05-18 Thread Shawn Heisey
Can I search for the empty string? This is distinct from searching for documents that don't have a certain fieldat all, which I can already do with a clause of "*:* -field:[*TO *]"in my query. Thanks, Shawn