Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 94454 invoked from network); 14 Feb 2011 10:35:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Feb 2011 10:35:39 -0000 Received: (qmail 36223 invoked by uid 500); 14 Feb 2011 10:35:36 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 35764 invoked by uid 500); 14 Feb 2011 10:35:33 -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 35756 invoked by uid 99); 14 Feb 2011 10:35:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 10:35:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [207.97.245.191] (HELO smtp191.iad.emailsrvr.com) (207.97.245.191) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 10:35:25 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp49.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 76A5E190354; Mon, 14 Feb 2011 05:35:04 -0500 (EST) X-Virus-Scanned: OK Received: by smtp49.relay.iad1a.emailsrvr.com (Authenticated sender: isha.garg-AT-orkash.com) with ESMTPSA id E3002190342 for ; Mon, 14 Feb 2011 05:35:03 -0500 (EST) Message-ID: <4D590558.40505@orkash.com> Date: Mon, 14 Feb 2011 16:05:04 +0530 From: Isha Garg User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: solr-user@lucene.apache.org Subject: Re: Faceting Query References: <4D538B0A.4050008@orkash.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Friday 11 February 2011 11:34 PM, Gora Mohanty wrote: > On Thu, Feb 10, 2011 at 12:21 PM, Isha Garg wrote: > >> What is facet.pivot field? PLz explain with example >> > Does http://wiki.apache.org/solr/SimpleFacetParameters#facet.pivot not help? > > Regards, > Gora > No, it is not showing any pivot results in my case http://localhost:8984/solr/worldNews/select/?q=*%3A*&version=2.2&start=0&rows=0&indent=on&facet.pivot=category,country,KeyLocation&facet.pivot=country,category&facet=true&facet.field=category&&wt=json Output is: { "responseHeader":{ "status":0, "QTime":1, "params":{ "facet":"true", "indent":"on", "start":"0", "q":"*:*", "facet.field":"category", "wt":"json", "facet.pivot":["category,country,KeyLocation", "country,category"], "version":"2.2", "rows":"0"}}, "response":{"numFound":6775,"start":0,"docs":[] }, "facet_counts":{ "facet_queries":{}, "facet_fields":{ "category":[ "Counterfeiting and Piracy ",2367, "Social Unrest ",2143, "Security Measures ",1064, "Fraud and Cheating ",356, "Naxelites ",266, "Terrorism ",243, "Sex Crime ",232, "Shiv Sena ",76, "Major Crime ",23, "Drug Running and Organized Crime ",5]}, "facet_dates":{}}}