Closed Simon-Dirks closed 2 months ago
Fix: Retrieve top 100 hit IDs that match the filter, and base the (clustered) filter option count on the total number of UNIQUE node IDs. Note that elastic top_hits
aggregation has a limit of 100 by default, if we want to show higher max counts for the filters, we need to update [index.max_inner_result_window]
on elastic to 10.000, and set the Config.ts elasticTopHitsMax
variable accordingly.
Unsure if we are allowed to edit this elastic index variable through Triply, think we need to do a PUT request for this.
Issue seems to be because of nodes having multiple types. In the example below, "Gemeente Heuvelrug" counts for two in the aggregation, but is a single hit in the search.