Hello, I have a question related to some things introduced by 0.10.x
version of Datahub. I recently got hurt by searchAcrossEntities
facets (buckets) count limited to 20. I found 2 related settings to this:
- Environment variable
ELASTICSEARCH_QUERY_MAX_TERM_BUCKET_SIZE
searchFlags.maxAggValues
input parameter for the query
What I have noticed is that changing value ofELASTICSEARCH_QUERY_MAX_TERM_BUCKET_SIZE
does not change actual limit of returned bucket count, while changingsearchFlags.maxAggValues
(at least in version0.10.5
) actually changes the bucket count limit. I am a bit confused what is intended relation between the env variable and the query input parameter?
This puzzles me especially, considering the query builder:
https://github.com/datahub-project/datahub/blob/master/metadata-io/src/main/java/com/linkedin/metadata/search/elasticsearch/query/request/SearchRequestHandler.java#L200|https://github.com/datahub-project/datahub/blob/master/metadata-io/src/main/java/c[…]ta/search/elasticsearch/query/request/SearchRequestHandler.java
Does not usefinalSearchFlags
when building aggregations as well as does not seem to use parameters coming fromELASTICSEARCH_QUERY_MAX_TERM_BUCKET_SIZE
. What am I missing here?