Re: Filtering a field when some of the documents don't have the value

2016-11-15 Thread Gintautas Sulskus
Thanks Erick, it works exactly as required! Gintas On Mon, Nov 14, 2016 at 7:02 PM, Erick Erickson wrote: > You want something like: > name:x&fq=population:[10 TO *] OR (*:* -population:*:*) > > Best, > Erick > > On Mon, Nov 14, 2016 at 10:29 AM, Gintautas Sulskus > wrote: > > Hi, > > > > I ha

Re: Filtering a field when some of the documents don't have the value

2016-11-14 Thread Erick Erickson
You want something like: name:x&fq=population:[10 TO *] OR (*:* -population:*:*) Best, Erick On Mon, Nov 14, 2016 at 10:29 AM, Gintautas Sulskus wrote: > Hi, > > I have an index with two fields "name" and "population". Some of the > documents have the "population" field empty. > > I would like t