Skip to content

Deprecate/remove common_terms query and cutoff_frequency #37096

@jimczi

Description

@jimczi

The common_terms query and the cutoff_frequency option of the match query are a good way to speed up search without removing stop words. However in Elasticsearch 7 we have another alternative that can automatically skip non-competitive documents based on the maximum score of each term in the query. This new method doesn't require any configuration (no cutoff frequency) and can be much faster than the common_terms alternative if the total number of hits that matches the query is not tracked.
For this reason I wonder if we could/should deprecate/remove the other alternatives (common_terms and cutoff_frequency), they should not be needed anymore since we have a better alternative that doesn't require to set a cutoff frequency while still being able to speed up queries with high frequency terms.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions