Re: finds all documents without a value for field

2017-07-21 Thread Shawn Heisey
On 7/20/2017 3:27 PM, Hendrik Haddorp wrote: > If the range query is so much better shouldn't the Solr query parser > create a range query for a token query that only contains the > wildcard? For the *:* case it does already contain a special path. The *:* query is a special string. Although it

Re: finds all documents without a value for field

2017-07-20 Thread Hendrik Haddorp
If the range query is so much better shouldn't the Solr query parser create a range query for a token query that only contains the wildcard? For the *:* case it does already contain a special path. On 20.07.2017 21:00, Shawn Heisey wrote: On 7/20/2017 7:20 AM, Hendrik Haddorp wrote: the Solr

Re: finds all documents without a value for field

2017-07-20 Thread Erick Erickson
One other possibility is to create a second boolean field "has_terms" or something and just add an fq clause like "&fq=has_terms:false" On Thu, Jul 20, 2017 at 12:00 PM, Shawn Heisey wrote: > On 7/20/2017 7:20 AM, Hendrik Haddorp wrote: >> the Solr 6.6. ref guide states that to "finds all doc

Re: finds all documents without a value for field

2017-07-20 Thread Shawn Heisey
On 7/20/2017 7:20 AM, Hendrik Haddorp wrote: > the Solr 6.6. ref guide states that to "finds all documents without a > value for field" you can use: > -field:[* TO *] > > While this is true I'm wondering why it is recommended to use a range > query instead of simply: > -field:* Performance. A wil

Re: finds all documents without a value for field

2017-07-20 Thread Hendrik Haddorp
forgot the link with the statement: https://lucene.apache.org/solr/guide/6_6/the-standard-query-parser.html On 20.07.2017 15:20, Hendrik Haddorp wrote: Hi, the Solr 6.6. ref guide states that to "finds all documents without a value for field" you can use: -field:[* TO *] While this is true I