CDRH / api

Codenamed "Apium": An API to access all public Center for Digital Research in the Humanities resources
https://cdrhdev1.unl.edu/api_frontend
MIT License
3 stars 1 forks source link

Discrepancy in facet results #132

Open wkdewey opened 1 year ago

wkdewey commented 1 year ago

With the nested bucket aggregations, I am seeing a discrepancy between the facet count and search results. See https://github.com/CDRH/habeascorpus/issues/108. This seems to be related to how Orchid is constructing API queries, rather than an issue with individual projects

wkdewey commented 1 year ago

This is an API problem, actually. I never properly implemented the method to pull out a single bucket from the nested query, although it appears to be constructing the buckets properly. The solution may be to use filters on the aggregations, rather than constructing queries.

wkdewey commented 1 year ago

fixed in latest code