Skip to content

Skipping scorer construction for clauses with zero cost#15998

Open
sgup432 wants to merge 5 commits into
apache:mainfrom
sgup432:skip_zero_cost_construction
Open

Skipping scorer construction for clauses with zero cost#15998
sgup432 wants to merge 5 commits into
apache:mainfrom
sgup432:skip_zero_cost_construction

Conversation

@sgup432
Copy link
Copy Markdown
Contributor

@sgup432 sgup432 commented Apr 29, 2026

Description

Refer - #15887 for details

This skips the scorer construction for clauses with zero cost. As with the example given in above issue, if a user sends hundred of should clauses, and with most of them or ALL with zero cost, we still end up constructing the scorer leading to unnecessary CPU cycles consumption.

@sgup432
Copy link
Copy Markdown
Contributor Author

sgup432 commented May 6, 2026

@msfroh mind taking this a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant