Closed newgene closed 1 year ago
This looks interesting for BTE use (querying biothings apis), particularly since it looks like it would allow checking that a field exists AND that its value is X.
We already have an implementation at a particular API instance:
Now we should move this feature into biothings.web module to make it a generic query feature for all APIs.
Typically working together with aggregation/facets,
post_filter
allows to filterhits
list without changingtotal
and aggregation output:https://www.elastic.co/guide/en/elasticsearch/reference/8.1/filter-search-results.html#post-filter
For example:
The new
post_filter
can be used to pass aquery_string
query to filter the matching hits: