lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Seidl <>
Subject Performance of q.alt vs. fq
Date Fri, 10 Jul 2015 11:55:01 GMT
Hi all,

I am working a lot with Drupal and Apache Solr. There, we implemented a
performance improvement that would, for filter-only queries (i.e., no
"q" parameter, just "fq"s) instead move the filters to the "q.alt"
parameter (idea based on this blog post [1]).


Before, we had "q.alt=*:*" to return all results and then filter via
"fq". So, e.g., this query:
becomes this:
  q.alt=(field1:foo) AND (field2:bar)

However, now I've read some complaints that the former is actually
faster, and some other people also pointed out (in separate discussions)
that "fq" is much faster than "q".

So, can anyone shed some lights on this, what the internal mechanics are
that make the one or the other faster? Are there other suggestions for
how to make a "filters-only" search as fast as possible?

Also, can it be that it recently changed that the "q.alt" parameter now
influences relevance (in Solr 5.x)? I could have sworn that wasn't the
case previously.

Thanks in advance,

View raw message