You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2015/11/10 00:03:11 UTC

[jira] [Comment Edited] (SOLR-8251) MatchAllDocsQuery is much slower in solr5.3.1 compare to solr4.7

    [ https://issues.apache.org/jira/browse/SOLR-8251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14997560#comment-14997560 ] 

Uwe Schindler edited comment on SOLR-8251 at 11/9/15 11:02 PM:
---------------------------------------------------------------

Maybe we should open a regression in Lucene core: Although FilteredQuery is deprecated, I still think the rewrite of FilteredQuery(MatchAllDocs,Filter) -> CSQ was perfectly fine. Not sure why [~jpountz] removed it in 5.x...

Edit: I did not wat to specifically accuse Adrien :-) I just skimmed through the changes of FilteredQuery and found out that the "optimization" was removed.

In general there is a difference also in scoring: The matchAllDocsQuery produced a constant score of 1 (perfectly fine). Now if you remove the MatchAllDocsQuery from the BQ, you produce a similar strange thing: You get a query that has a score of 0.... I hit the same issue when I rewrote my queries in Elasticsearch and I just removed the MatchAllDocsQuery... Suddenly those queries consisting solely of filters got a score of 0


was (Author: thetaphi):
Maybe we should open a regression in Lucene core: Although FilteredQuery is deprecated, I still think the rewrite of FilteredQuery(MatchAllDocs,Filter) -> CSQ was perfectly fine. Not sure why [~jpountz] removed it in 5.x...

> MatchAllDocsQuery is much slower in solr5.3.1 compare to solr4.7
> ----------------------------------------------------------------
>
>                 Key: SOLR-8251
>                 URL: https://issues.apache.org/jira/browse/SOLR-8251
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 5.3
>            Reporter: wei shen
>
> I am trying to upgrade our production solr instance from 4.7 to 5.3.1. Unfortunately when I do load testing I find the MatchAllDocsQuery is much slower in solr 5.3.1 compare to 4.7. (solr 5.3.1 is faster in load test with queries other than MatchAllDocsQuery). I asked solr-user and discussed with Yonik Seeley. He confirmed that he can see the problem too comparing solr 5.3.1 and 4.10.
> here is the query I use:
> {code}
> q={!cache=false}*:*&fq=+categoryIdsPath:1001&fl=id&start=0&rows=2&debug=true
> {code}
> for me the query is consistently about 60-70% slower on solr5 than solr4.
> Yonik mentioned in his email "For me, 5.3.1
> is about 5x slower than 4.10 for this particular query."



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org