You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm reaching out to report an inconsistency we've observed with the terminate_after parameter in our search queries, which seems to be affecting the functionality of dropdown lists in the frontend.
Issue Description:
The frontend utilizes a query that leverages the terminate_after parameter to calculate dropdown lists. This has been working as expected up to version 2.9. However, upon upgrading to version 2.11, the same query now returns empty results.
Setting terminate_after to 0 or increasing the value to 500,000 results in the expected output.
The default value of 100,000 for terminate_after has been a constant for over 4 years, as per our historical code reference here.
Potential Explanations:
The index might contain more than 100,000 documents, but fewer than 500,000. Since terms aggregation requires scanning all documents, partial results are not feasible.
Disabling terminate_after by setting it to 0 allows the query to scan all necessary documents to complete the aggregation.
Related Changes:
In the 2.11 update, we identified a change that might be correlated with this issue, detailed in this pull request.
We need assistance in pinpointing the root cause of this discrepancy. Could you please help us investigate this matter further? Any insights into changes between versions 2.9 and 2.11 that could affect the terminate_after behavior would be invaluable.
Related component
Search:Aggregations
To Reproduce
Construct an index that contains a document count exceeding 100,000 yet remains below 500,000. Ensure each document includes the fields Host.keyword and TimeStamp.
Describe the bug
I'm reaching out to report an inconsistency we've observed with the terminate_after parameter in our search queries, which seems to be affecting the functionality of dropdown lists in the frontend.
Issue Description:
The frontend utilizes a query that leverages the terminate_after parameter to calculate dropdown lists. This has been working as expected up to version 2.9. However, upon upgrading to version 2.11, the same query now returns empty results.
Query Example:
Observations:
Potential Explanations:
Related Changes:
We need assistance in pinpointing the root cause of this discrepancy. Could you please help us investigate this matter further? Any insights into changes between versions 2.9 and 2.11 that could affect the terminate_after behavior would be invaluable.
Related component
Search:Aggregations
To Reproduce
Expected behavior
We expect to see non-empty terms aggregation result.
Additional Details
No response
The text was updated successfully, but these errors were encountered: