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 5C32210813 for ; Wed, 24 Jul 2013 07:48:03 +0000 (UTC) Received: (qmail 76583 invoked by uid 500); 24 Jul 2013 07:47:59 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 76312 invoked by uid 500); 24 Jul 2013 07:47:59 -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 76304 invoked by uid 99); 24 Jul 2013 07:47:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 07:47:58 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.219.47] (HELO mail-oa0-f47.google.com) (209.85.219.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 07:47:54 +0000 Received: by mail-oa0-f47.google.com with SMTP id m1so180724oag.6 for ; Wed, 24 Jul 2013 00:47:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:content-type:x-gm-message-state; bh=Nl87hJGoumwf+lyp+JOT1xqNkMUwJPXAGjX+syUVheM=; b=c4dYbb02YDjuT2/eYALiZhAw8t/XQSwVrbnp9x5nTQF1IaDt5OWXE494DMyWe1AsT4 6s0CS0FunXqvWzgDfLe3TG/4+4O2NNVHoeAM0rYoYyZErzRrIhX6O1ZL6gre892A4mkY Qk3BnrrXAkYTGnnGdB8ebBJ+T/4pj0hD1f7v6E2u/8paRbrN3DjGVr9ZSP42/tM6bMBb 2z3vwMLGMnT/uVfkM0n97Cj7DZXwat7VcwiCq4emT7Ts9p8+skMWicic6lTFIerEmyrn 4Ejr4JXZSfV3DbPcUX802S3sw3QQBAfWTJmqCEb9IM8VaLQPVGi2por8fjPUQDecEYC/ SmWw== X-Received: by 10.42.228.1 with SMTP id jc1mr19620572icb.92.1374652033373; Wed, 24 Jul 2013 00:47:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.43.108.68 with HTTP; Wed, 24 Jul 2013 00:46:42 -0700 (PDT) X-Originating-IP: [122.172.248.79] In-Reply-To: <1374651553434-4079964.post@n3.nabble.com> References: <1374651553434-4079964.post@n3.nabble.com> From: Anshum Gupta Date: Wed, 24 Jul 2013 13:16:42 +0530 Message-ID: Subject: Re: Querying a specific core in solr cloud To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a1133d7b823afc704e23d1ed2 X-Gm-Message-State: ALoCoQklHO1z1UZXc4DQQ7Y8Yknd2EJtYcwrxTF6xjvYK/fZosXt0G6I16WhQPonYU6AqWOF2gBT X-Virus-Checked: Checked by ClamAV on apache.org --001a1133d7b823afc704e23d1ed2 Content-Type: text/plain; charset=ISO-8859-1 Can I get more insight into why you'd want to query a specific replica? Also, leader election is dynamic in SolrCloud, so unless you have a ZK aware client (CloudSolrServer) you may not be hitting the leader when you think you are. Having said that, why would you be bothered with 'who's the leader'? On Wed, Jul 24, 2013 at 1:09 PM, vicky desai wrote: > Hi, > > I had a requirement wherein I wanted to query a specific core on a specific > solr instance . I found the following content in solr wiki > > * > Explicitly specify the addresses of shards you want to query: > > http://localhost:7574/solr/collection1/select?shards=localhost:7574/solr/collection1/* > > Now suppose if I have a set ip of 1 leader(port:8983) and 1 replica > (port:7574) and collection 1 is present on 8983 still the above query give > me correct result. It fails only in port 7574 is down. > > Can anybody please provide some help on this > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Querying-a-specific-core-in-solr-cloud-tp4079964.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Anshum Gupta http://www.anshumgupta.net --001a1133d7b823afc704e23d1ed2--