OpenSearch/modules
Marios Trivyzas dac720d7a1
Add a cluster setting to disallow expensive queries (#51385) (#52279)
Add a new cluster setting `search.allow_expensive_queries` which by
default is `true`. If set to `false`, certain queries that have
usually slow performance cannot be executed and an error message
is returned.

- Queries that need to do linear scans to identify matches:
  - Script queries
- Queries that have a high up-front cost:
  - Fuzzy queries
  - Regexp queries
  - Prefix queries (without index_prefixes enabled
  - Wildcard queries
  - Range queries on text and keyword fields
- Joining queries
  - HasParent queries
  - HasChild queries
  - ParentId queries
  - Nested queries
- Queries on deprecated 6.x geo shapes (using PrefixTree implementation)
- Queries that may have a high per-document cost:
  - Script score queries
  - Percolate queries

Closes: #29050
(cherry picked from commit a8b39ed842c7770bd9275958c9f747502fd9a3ea)
2020-02-12 22:56:14 +01:00
..
aggs-matrix-stats Rename MapperService#fullName to fieldType. 2020-02-07 10:35:53 -08:00
analysis-common Move analysis/mappings stats to cluster-stats. (#51875) 2020-02-05 11:02:25 +01:00
ingest-common RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
ingest-geoip Allow list of IPs in geoip ingest processor (#49573) (#49947) 2019-12-07 00:19:09 +01:00
ingest-user-agent Mute ‘test user agent processor with non-ECS schema’ 2020-02-12 10:27:18 -05:00
lang-expression Upgrade to lucene-8.5.0-snapshot-d62f6307658 (#52039) (#52130) 2020-02-10 10:13:22 +01:00
lang-mustache RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
lang-painless RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
mapper-extras Add a cluster setting to disallow expensive queries (#51385) (#52279) 2020-02-12 22:56:14 +01:00
parent-join Add a cluster setting to disallow expensive queries (#51385) (#52279) 2020-02-12 22:56:14 +01:00
percolator Add a cluster setting to disallow expensive queries (#51385) (#52279) 2020-02-12 22:56:14 +01:00
rank-eval RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
reindex RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
repository-url Remove Unused Single Delete in BlobStoreRepository (#50024) (#50123) 2019-12-12 11:17:46 +01:00
systemd Extend systemd timeout during startup (#49784) 2019-12-03 14:25:45 -05:00
tasks Deprecate creation of dot-prefixed index names except for hidden and system indices (#49959) 2020-01-28 10:01:16 -07:00
transport-netty4 Adjust jarHell and 3rd party audit exclusions (#51733) (#51766) 2020-02-10 07:38:59 +02:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00