I am also working on same feature of solr 4.0

And I have doubt in the results am getting. I will post the cases here. If
anyone know why is it so,Please revert back...

I run a normal facet query with q parameter q=*:*  and did facet=on
&facet.field=stock&facet.filed=place&facet.field=quantity&facet.mincout=1

Results  i got is-
<facet_fields>
<stock>
<rice>10</>
<bean>10</>
<wheat>10</>
<jowar>10</>
</stock>
<place>
<bangalore>10</>
<Kolar>10</>
</place>
<quality>
<standard>10</>
<high>10</>
</quality>
</facet_fields>

Now when I am doing this facet.pivot query with same q paramater (q= *:* )and
same data set ..
query - facet.pivot=stock,place,quality&facet.mincout=1

Result I get is like this-
<lst>
<rice>
<bangalore>
<high>
</lst>
<lst>
<bean>
<bangalore>
<standard>
</lst>
<lst>
<jowar>
</lst>

The point is .. Why I am not getting result hirearchy for "wheat" when it is
coming in the flat faceting above.

Awaiting reply

Regards,
Rajani Maski




On Mon, Feb 14, 2011 at 4:18 PM, rajini maski <rajinima...@gmail.com> wrote:

> 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.g...@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.g...@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":{}}}
>>
>>
>>
>

Reply via email to