The configuration for an aggregation defines a title property, such as:
{
aggregations: {
tags: {
title: 'Tags',
// conjunctive facet (AND)
conjunction: true,
// the default is 10
size: 20
},
rating: {
title: 'Actors',
// non conjunctive facet (OR)
conjunction: false,
// it is sorting by value (not by count). 'count' is the default
sort: 'term',
order: 'asc',
size: 5
}
}
}
I assumed it could be used for the UI part of the facets, once the search has been succesful.
But the code for creating the buckets automatically generates a title property out of a humanised version of the id, see
The configuration for an aggregation defines a
title
property, such as:I assumed it could be used for the UI part of the facets, once the search has been succesful. But the code for creating the buckets automatically generates a
title
property out of a humanised version of the id, seehttps://github.com/itemsapi/itemsjs/blob/06e2e70812294e94b3759bf7fda47db4633ac765/src/helpers.js#L236-L241
title
used anywhere else in the code or by other integrations?title
has not been defined in the configuration, e.g.