lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajini maski <rajinima...@gmail.com>
Subject Re: Faceting Query
Date Mon, 14 Feb 2011 10:48:31 GMT
This feature works in SOLR 4.0 release.

You can follow this link for knowing how it works...

Click here<http://solr.pl/en/2010/10/25/hierarchical-faceting-pivot-facets-in-trunk/>



Regards
Rajani Maski


On Mon, Feb 14, 2011 at 4:05 PM, Isha Garg <isha.garg@orkash.com> wrote:

> On Friday 11 February 2011 11:34 PM, Gora Mohanty wrote:
>
>> On Thu, Feb 10, 2011 at 12:21 PM, Isha Garg<isha.garg@orkash.com>  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":{}}}
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message