Additional reading: https://lucidworks.com/post/why-not-and-or-and-not/
Assuming implicit AND, we perform the following rewrite on strictly negative queries: -f:a -> -f:a *:* Isn't search fun? :-) - Bram On 21/05/2020 20:51, Houston Putman wrote: > Jochen, > > For the standard query parser, pure negative queries (no positive query in > front of it, such as "*:*") are only allowed as a top level clause, so not > nested within parenthesis. > > Check the second bullet point of the this section of the Ref Guide page for > the Standard Query Parser. > <https://lucene.apache.org/solr/guide/8_5/the-standard-query-parser.html#TheStandardQueryParser-DifferencesbetweenLuceneQueryParserandtheSolrStandardQueryParser> > > For the edismax query parser, pure negative queries are allowed to be > nested within parenthesis. Docs can be found in the Ref Guide page for the > eDismax Query Parser. > <https://lucene.apache.org/solr/guide/8_5/the-extended-dismax-query-parser.html> > > - Houston > > On Thu, May 21, 2020 at 2:25 PM Jochen Barth <ba...@ub.uni-heidelberg.de> > wrote: > >> Dear reader, >> >> why does +(-x_ss:y) finds 0 docs, >> >> while -(+x_ss:y) finds many docs? >> >> Ok... +(*:* -x_ss:y) works, too, but I'm a bit surprised. >> >> Kind regards, J. Barth >> >> >