Allow the QueryBuilder DSL to disable scoring for must clauses

Description

The BooleanClause.Occur enum in Lucene now offers a Filter option, which is similar to Must but has it disable scoring.

Scoring can be CPU intensive, and when used as filtering criteria might not be desirable.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure