Skip to content

[BUG] Optimisation is not done when profile option is enabled #17677

Open
@expani

Description

@expani

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

No one assigned

    Labels

    SearchSearch query, autocomplete ...etcbugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions