Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C61718D73 for ; Fri, 6 Nov 2015 03:38:39 +0000 (UTC) Received: (qmail 16829 invoked by uid 500); 6 Nov 2015 03:38:30 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 16771 invoked by uid 500); 6 Nov 2015 03:38:30 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 16758 invoked by uid 99); 6 Nov 2015 03:38:30 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2015 03:38:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 933EA1A25F3 for ; Fri, 6 Nov 2015 03:38:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.148 X-Spam-Level: *** X-Spam-Status: No, score=3.148 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id vPO2XUaBYSTv for ; Fri, 6 Nov 2015 03:38:27 +0000 (UTC) Received: from mail-yk0-f175.google.com (mail-yk0-f175.google.com [209.85.160.175]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 813AB2064B for ; Fri, 6 Nov 2015 03:38:26 +0000 (UTC) Received: by ykdr3 with SMTP id r3so168705439ykd.1 for ; Thu, 05 Nov 2015 19:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=xJRuREkmN+X6cPunOOqsaZCg6s/Way+96aGnTuRTZE0=; b=uIgY9Ktzb5H933Gv3TRru1EXhVy8KgD1CaX/XFUPoAsmsl8tJzBVZBCbvEbksLibPi 539QXnslgI6X7jWMp9xRGNm+MTJvLjUOUNPkFGBz0QkwqMZFehvJ9Co26dfjo4w/pUQ/ KE7Buux45mII8pBtjsF1tUloeWEEcwjV0hLu+GPVgsXpoGyTwElvsFvLuXOIMdcb3RR3 Yga84r6Vt+MXhv4dlfLqqJSWoB/XJ+Sazn9Cda/jUTIIMyEB8CEIKpe5DkXK4RAiEucX oMmrYeT62JRk5FloyS9tWS/fBEbLDDQdK8YmR4Dllk+KNk9aDECA+/+7+ZdeaX2Es9+v uLRg== MIME-Version: 1.0 X-Received: by 10.129.44.138 with SMTP id s132mr9616237yws.306.1446781105793; Thu, 05 Nov 2015 19:38:25 -0800 (PST) Received: by 10.129.128.132 with HTTP; Thu, 5 Nov 2015 19:38:25 -0800 (PST) Date: Thu, 5 Nov 2015 19:38:25 -0800 Message-ID: Subject: MatchAllDocsQuery is much slower in solr5.3.1 compare to solr4.7 From: wei To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a1141e56ae0f0d40523d6f9ee --001a1141e56ae0f0d40523d6f9ee Content-Type: text/plain; charset=UTF-8 We are running our search on solr4.7 and I am evaluating whether to upgrade to solr5.3.1. I found MatchAllDocsQuery is much slower in solr5.3.1. Anyone know why? We have a lot of queries without any query keyword, but we apply filters on the query. Load testing shows those queries are much slower in solr5.3.1 compare to 4.7. If we load test with queries with search keywords, we can see the queries are much faster in solr5.3.1 compare solr4.7. here is sample debug info: (in solr 4.7) 0 86 id 0 *:* true +categoryIdsPath:1001 2 36652255 36651884 *:* *:* MatchAllDocsQuery(*:*) *:* 1.0 = (MATCH) MatchAllDocsQuery, product of: 1.0 = queryNorm 1.0 = (MATCH) MatchAllDocsQuery, product of: 1.0 = queryNorm LuceneQParser +categoryIdsPath:1001 +categoryIdsPath:1001 86.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 86.0 85.0 0.0 0.0 0.0 0.0 1.0 (in solr 5.3.1) 0 313 id 0 *:* true +categoryIdsPath:1001 2 36652255 36651884 *:* *:* MatchAllDocsQuery(*:*) *:* 1.0 = *:*, product of: 1.0 = boost 1.0 = queryNorm 1.0 = *:*, product of: 1.0 = boost 1.0 = queryNorm LuceneQParser +categoryIdsPath:1001 +categoryIdsPath:1001 313.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 311.0 311.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 Thanks, Wei --001a1141e56ae0f0d40523d6f9ee--