Search for *:* -body:* I do this pretty often.
wunder Walter Underwood [email protected] http://observer.wunderwood.org/ (my blog) > On Jul 28, 2021, at 8:48 AM, mtn search <[email protected]> wrote: > > Hello, > > Some documents in my collection have an empty body field. > "body":"", > > I am looking for a query to find docs with a body field with this "empty" > value. > > Normally, I might run with a filter > fq=-body:* > > On this large set of shards that I am querying it times out with the > wildcard. On smaller sets, it shows when there is no body field. > > Other attempts at representing a value of "" in the filter query have not > worked. > > Any tips? > > Thanks, > Matthew
