-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
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.