OpenSearch/plugins
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
..
analysis-icu Add a cluster setting to disallow expensive queries (#51385) (#52279) 2020-02-12 22:56:14 +01:00
analysis-kuromoji Upgrade to lucene-8.5.0-snapshot-d62f6307658 (#52039) (#52130) 2020-02-10 10:13:22 +01:00
analysis-nori Upgrade to lucene-8.5.0-snapshot-d62f6307658 (#52039) (#52130) 2020-02-10 10:13:22 +01:00
analysis-phonetic Upgrade to lucene-8.5.0-snapshot-d62f6307658 (#52039) (#52130) 2020-02-10 10:13:22 +01:00
analysis-smartcn Upgrade to lucene-8.5.0-snapshot-d62f6307658 (#52039) (#52130) 2020-02-10 10:13:22 +01:00
analysis-stempel Upgrade to lucene-8.5.0-snapshot-d62f6307658 (#52039) (#52130) 2020-02-10 10:13:22 +01:00
analysis-ukrainian Upgrade to lucene-8.5.0-snapshot-d62f6307658 (#52039) (#52130) 2020-02-10 10:13:22 +01:00
discovery-azure-classic Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
discovery-ec2 Move EC2 Discovery Tests to Mock Rest API (#50605) (#52270) 2020-02-12 18:35:50 +01:00
discovery-gce Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
examples RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
ingest-attachment Test modifications for FIPS 140 mode (#51832) (#52128) 2020-02-10 10:57:03 +02:00
mapper-annotated-text Annotated text type should extend TextFieldType (#49555) 2019-11-26 16:52:21 +00:00
mapper-murmur3 Small refactorings to analysis components (#40745) 2019-04-03 14:22:16 +02:00
mapper-size Rename MapperService#fullName to fieldType. 2020-02-07 10:35:53 -08:00
repository-azure Remove snapshots left by previous tests failures (#50380) 2019-12-19 17:51:51 +01:00
repository-gcs Optimize GCS Repo Uploads (#51596) (#51618) 2020-01-29 16:07:30 +01:00
repository-hdfs Remove BlobContainer Tests against Mocks (#50194) (#50220) 2019-12-16 11:37:09 +01:00
repository-s3 RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
store-smb Remove usage of FileSwitchDirectory (#42937) 2019-06-12 19:35:27 +02:00
transport-nio 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