Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement top hits aggregations #5846

Open
StepanBrychta opened this issue Dec 4, 2024 · 0 comments
Open

Implement top hits aggregations #5846

StepanBrychta opened this issue Dec 4, 2024 · 0 comments

Comments

@StepanBrychta
Copy link

As part of switching from label-based filtering to ID-based filtering for concepts (see #5825), we have switched to using nested aggregations with label and ID subfields.

However, this will lead to some aggregation buckets from different ontologies having duplicate labels. Therefore, it might be helpful to surface the ontology type of each concept within each aggregation bucket returned to the frontend. The most suitable way of achieving this is probably through a top hits sub aggregation within each nested aggregation.

@StepanBrychta StepanBrychta converted this from a draft issue Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Next
Development

No branches or pull requests

1 participant