-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
In response to ukwa/w3act#676
Looking at:
public NamedList<List<PivotField>> pivotCategoriesRequest() throws Exception{ |
This seems to map to this query, where the UK General Election 2015 collection can be seen: http://prod1.n45.wa.bl.uk:9021/solr/collections/select?indent=on&facet=true&facet.pivot=collectionAreaId,id,description,name&q=*:*&facet.limit=-1&facet.pivot.mincount=1&wt=json&rows=1
The code that consumes this list is not obvious to me, so I'm not sure what's happening there:
for (Map.Entry<String, List<PivotField>> pivotEntry : pivotEntryList) { |
The only thing I spotted is that the UK General Election 2015 collection is preceded by a entry that has no description:
{
"field":"id",
"value":"4148",
"count":1},
{
"field":"id",
"value":"60",
"count":1,
"pivot":[{
"field":"description",
"value":"Collection of websites, curated by staff at the Legal Deposit Libraries, focussing on the 2015 UK General Election which was held on 7 May 2015 to elect 650 members to the House of Commons. It was the first general election at the end of a fixed-term Parliament. \n",
"count":1,
"pivot":[{
"field":"name",
"value":"UK General Election 2015",
"count":1}]}]},
Is it possible that that's breaking things? You could try this by filtering out items with no description or title (name:[* TO *] AND description:[* TO *]
), e.g.