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 39C5018188 for ; Sat, 20 Jun 2015 16:44:18 +0000 (UTC) Received: (qmail 70576 invoked by uid 500); 20 Jun 2015 16:44:14 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 70496 invoked by uid 500); 20 Jun 2015 16:44:14 -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 70484 invoked by uid 99); 20 Jun 2015 16:44:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jun 2015 16:44:14 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.213.179 as permitted sender) Received: from [209.85.213.179] (HELO mail-ig0-f179.google.com) (209.85.213.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jun 2015 16:41:59 +0000 Received: by igblr2 with SMTP id lr2so31035890igb.0 for ; Sat, 20 Jun 2015 09:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DFVlobCnkaPO/mR3aw/fi3dhshpqQe9bcSXT7pdJ6ZM=; b=1B6GiESbI1GAaFrEZCQjnzQa68htJKmQDXIAuOATDgn9Cs/Jk5jIQhTUiMeqqNkIIh 2h9/mZQrOidsmoP2sVrepIEvWk9l4x1PVuEJ5U14XxKxy6ZHbuhmcP7ZMoqVPurxTXBC XmDshJz59K+f2qISD7VI1rd4F/41j6R5ic3UEesbyBSGfBjZYiJ3lFP9fU+7pnz3Hf1M ZkRRWtAMD5wDcWkcBM0Xa8IumMS+GQP9FAWlteAskk2hVFF5ROSiOGEHEVyZWZDmTSa2 6s1tvf+lDO5ulwqUPL3j3wzc9kbWg9lHlX7aCbz+V/vsw/icBsSxlVj+8CKubmMvJoD0 zPBQ== MIME-Version: 1.0 X-Received: by 10.107.10.151 with SMTP id 23mr28402510iok.89.1434818626868; Sat, 20 Jun 2015 09:43:46 -0700 (PDT) Received: by 10.107.181.146 with HTTP; Sat, 20 Jun 2015 09:43:46 -0700 (PDT) In-Reply-To: References: Date: Sat, 20 Jun 2015 09:43:46 -0700 Message-ID: Subject: Re: Same query, inconsistent result in SolrCloud From: Erick Erickson To: solr-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Just that this _shouldn't_ be going on at all. Either 1> you've done something when setting up this collection that's producing this incorrect result or 2> you've found something really bad. So: 1> How did you create your collection? Did you use the Collections API or try to define individual cores with the Core Admin api? If the latter, you likely missed some innocent-seeming property on the core and your collection isn't correctly configured. Please do NOT use the "core admin API" in SolrCloud unless you know the code very, very well. Use the Collections API always. 2> Try querying each replica with &distrib=false. That'll return only the docs on the particular replica you fire the query at. Do you have replicas in the _same_ shard with different numbers of docs? If so, what can you see that's different about those cores? 3> What does your clusterstate.json file show? 4> how did you index documents? Best, Erick On Fri, Jun 19, 2015 at 8:07 PM, Jerome Yang wrote: > Hi! > > I'm facing a problem. > I'm using SolrCloud 4.10.3, with 2 shards, each shard have 2 replicas. > > After index data to the collection, and run the same query, > > http://localhost:8983/solr/catalog/select?q=a&wt=json&indent=true > > Sometimes, it return the right, > > { > "responseHeader":{ > "status":0, > "QTime":19, > "params":{ > "indent":"true", > "q":"a", > "wt":"json"}}, > "response":{"numFound":5,"start":0,"maxScore":0.43969032,"docs":[ > {},{},... > > ] > > } > > } > > But, when I re-run the same query, it return : > > { > "responseHeader":{ > "status":0, > "QTime":14, > "params":{ > "indent":"true", > "q":"a", > "wt":"json"}}, > "response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[] > }, > "highlighting":{}} > > > Just some short word will show this kind of problem. > > Do anyone know what's going on? > > Thanks > > Regards, > > Jerome