lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georgios Petasis <petas...@yahoo.gr.INVALID>
Subject How to use facet pivoting with paging?
Date Wed, 15 Mar 2017 11:13:25 GMT
Hi all,

I am performing a facet with pivot query. The result I get is correct, 
but when I use "facet.offset=1" in the query, the results I get differ, 
as in pivot removed.

Instead of getting:

     "facet_pivot":{
       "buyer.name,agreedPrice.hasCurrency.notation":[{
           "field":"buyer.name",
           "value":"KOMPANIA W\u0118GLOWA S.A.",
           "count":11228,
           "pivot":[{
               "field":"agreedPrice.hasCurrency.notation",
               "value":"EUR",
               "count":11084,
               "stats":{
                 "stats_fields":{
                   "agreedPrice.hasCurrencyValue":{
                     "sum":5.069190961199988E9}}}}],
           "stats":{
             "stats_fields":{
               "agreedPrice.hasCurrencyValue":{
                 "sum":5.069190961199988E9}}}},

I get:

"facet_pivot":{
       "buyer.name,agreedPrice.hasCurrency.notation":[{
           "field":"buyer.name",
           "value":"KOMPANIA W\u0118GLOWA S.A.",
           "count":11228,
           "stats":{
             "stats_fields":{
               "agreedPrice.hasCurrencyValue":{
                 "sum":5.069190961199988E9}}}},

There is no "pivot" element. Is there a way to use paging and get the 
results I get with facet.offset=0?

I am using Solr 6.4.2

Regards,

George


Mime
View raw message