Open
Description
Describe the bug
While analyzing the performance differences in keyword-terms
operation in Big5 workload i noticed that the optimization of intersecting between the .tim
Term Index unique terms and the Global ordinals doesn't kick in when profile: true
is set on a search request.
The optimization returns because the weight is null here
Related component
Search
To Reproduce
Run Big5 benchmark on a local setup ( single node....doesn't matter )
Run the keyword-terms
query with and without profile and debug to check if the optimization of GlobalOrdinalsStringTermsAggregator#tryCollectFromTermFrequencies
gets skipped when profile is enabled.
Expected behavior
We should be using the optimization even when the query is being profiled.
Additional Details
No response
Metadata
Metadata
Assignees
Type
Projects
Status
🆕 New