: Solr can process the query which has NOT operator ("-") in the head. : If Solr find it, Solr adds MatchAllDocsQuery automatically : in the front of that query as follows:
thta's not strictly true ... Solr doesn't *add* a MatchAllDocsQuery if the query is entirely prohibitive, instead Solr executes a MatchAllDocsQuery and then filters that by the DocSet returned by the "absolute value" of the orriginal query. the end result should be functionaly equivilent, but this approach caches better (both "-text:foo" and "text:foo" are cached the same) ... the downside is that the debuging info for purely prohibitive queries is currently incorrect (see SOLR-119) -Hoss