OpenSearch/qa
Jim Ferenczi 82db0b575c
Allow index filtering in field capabilities API (#57276) (#58299)
This change allows to use an `index_filter` in the
field capabilities API. Indices are filtered from
the response if the provided query rewrites to `match_none`
on every shard:

````
GET metrics-*
{
  "index_filter": {
    "bool": {
      "must": [
        "range": {
          "@timestamp": {
            "gt": "2019"
          }
        }
      }
  }
}
````

The filtering is done on a best-effort basis, it uses the can match phase
to rewrite queries to `match_none` instead of fully executing the request.
The first shard that can match the filter is used to create the field
capabilities response for the entire index.

Closes #56195
2020-06-18 10:23:26 +02:00
..
ccs-unavailable-clusters Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
die-with-dignity RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
evil-tests Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
full-cluster-restart Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
logging-config ThreadPool and ThreadContext are not closeable (#43249) (#49273) 2019-11-19 13:15:16 -07:00
mixed-cluster Move bwcVersions extension property to BuildParams (back port) (#56381) 2020-05-11 09:39:13 +02:00
multi-cluster-search Allow index filtering in field capabilities API (#57276) (#58299) 2020-06-18 10:23:26 +02:00
no-bootstrap-tests Prevent unexpected native controller output hanging the process (#56685) 2020-05-13 22:57:00 +01:00
os Unify dependency licenses task configuration (#58116) (#58274) 2020-06-18 08:15:50 +02:00
remote-clusters Revert "Scripting: Deprecate general cache settings (#55753)" (#58201) 2020-06-16 14:58:18 -06:00
repository-multi-version Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
rolling-upgrade [7.x] Scope index templates put during cluster upgrade tests (#58065) (#58122) 2020-06-15 10:47:36 -06:00
smoke-test-client Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
smoke-test-http Implement dangling indices API (#58176) 2020-06-16 21:50:38 +01:00
smoke-test-ingest-disabled Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
smoke-test-ingest-with-all-dependencies Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
smoke-test-multinode Set feature flags for IndexTemplatesV2 in top-level gradle file (#53898) 2020-03-20 14:52:22 -06:00
smoke-test-plugins [7.x] Lazy test cluster module and plugins (#54852) (#55087) 2020-04-13 10:53:35 -05:00
translog-policy Omit translog bwc test before 6.3.0 with default distro (#57266) 2020-05-28 12:38:30 -07:00
unconfigured-node-name Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
verify-version-constants Move bwcVersions extension property to BuildParams (back port) (#56381) 2020-05-11 09:39:13 +02:00
wildfly Unify dependency licenses task configuration (#58116) (#58274) 2020-06-18 08:15:50 +02:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00