OpenSearch/client
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
..
benchmark Unify dependency licenses task configuration (#58116) (#58274) 2020-06-18 08:15:50 +02:00
client-benchmark-noop-api-plugin Unify dependency licenses task configuration (#58116) (#58274) 2020-06-18 08:15:50 +02:00
rest Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
rest-high-level Allow index filtering in field capabilities API (#57276) (#58299) 2020-06-18 10:23:26 +02:00
sniffer Unify dependency licenses task configuration (#58116) (#58274) 2020-06-18 08:15:50 +02:00
test Unify dependency licenses task configuration (#58116) (#58274) 2020-06-18 08:15:50 +02:00
transport Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00