lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Question on query syntax
Date Fri, 13 Jul 2007 03:49:29 GMT

: 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


Mime
View raw message