Facet pivot not working? [DATASOLR-193] #312
I am trying to get Solr facet fields working with pivots. The following is the Solr query I am trying execute via Spring Data Solr
The direct Solr query returns results as expected as shown below (only a small portion is shown below):
I am trying to reproduce the same with SDS (version: 1.2.2.RELEASE)
In my repository I have
This query completes fine and the facet results appear as expected (see below):
However, the facet pivot output does not have any results (see below):
No pivot information appears in the output. I have also attached the entire output with this issue.
I also tried the alternate way to specify the pivots:
The above method also produced the same incorrect results.
What am I missing here?
Affects: 1.2.2 (Dijkstra SR2)
The text was updated successfully, but these errors were encountered:
Christoph Strobl commented
The query created seems to be a valid one - at least the one I tested with. It would be helpful if you could provide the query sent to Solr when executing
<logger name="org.springframework.data.solr.core.SolrTemplate" level="DEBUG"/>
Maybe its one of the filters interfering
Jega A commented
Here is the information from the Solr log in the raw format
The same with decoded applied
Note that if I take the above query and simply append it to a query going directly to Solr then the Solr results look right (i.e., the pivot information is available). So I am thinking that Solr is doing the right thing however, along the way before being returned to the browser the information is lost.
Francisco Spaeth commented
The invocation of:
will returning only the facet pivot fields for a given facet page.
those methods shall return a FacetPivotFieldEntry that is the representation of a pivot result.
I just opened DATASOLR-205 in order to document the use of pivot faceting