OpenSearch/docs/reference
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
..
aggregations [DOCS] Move search API's `docvalue_fields` examples (#57760) (#57989) 2020-06-11 11:25:04 -04:00
analysis [DOCS] Reformat `pattern_replace` token filter (#57699) (#57995) 2020-06-11 12:19:38 -04:00
autoscaling Add get autoscaling policy API (#54762) 2020-04-04 18:04:25 -04:00
cat [Transform] fix page size return in cat transform, add dps (#57871) 2020-06-10 08:10:25 +02:00
ccr [DOCS] Fixes license management links (#58213) 2020-06-16 16:49:48 -07:00
cluster Add admonition to cluster state instability note (#57985) 2020-06-11 15:32:18 +01:00
commands [DOCS] Extract the cron docs from Watcher docs and add to the API conventions. (#56313) (#56651) 2020-05-12 16:36:18 -07:00
data-streams [DOCS] Remove redundant links in data stream docs 2020-06-17 17:08:19 -04:00
docs [DOCS] Fixes problematic terminology (#58184) 2020-06-16 11:43:22 -07:00
eql [DOCS] EQL: Correct EQL search API's `size` param def 2020-06-10 10:12:54 -04:00
graph [DOCS] Collapse nested objects in Explore API docs (#55067) 2020-04-13 09:27:03 -04:00
high-availability [DOCS] Fixes license management links (#58213) 2020-06-16 16:49:48 -07:00
how-to [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00
ilm [DOCS] Make ILM documentation data stream aware (#58035) (#58110) 2020-06-15 15:16:14 +01:00
images [DOCS] Add documentation for near real-time search (#57560) (#58138) 2020-06-15 16:42:57 -04:00
index-modules [DOCS] Relocate `shard allocation` module content (#56535) (#57448) 2020-06-01 13:15:08 -04:00
indices Add new flag to check whether alias exists on remove (#58100) 2020-06-18 10:15:26 +02:00
ingest Update hh to HH in date processor example (#58089) (#58144) 2020-06-15 17:04:14 -05:00
licensing Remove `_xpack` from license API example (#54698) (#54763) 2020-04-07 09:51:37 +03:00
mapping [DOCS] Move search API's `docvalue_fields` examples (#57760) (#57989) 2020-06-11 11:25:04 -04:00
migration Revert "Scripting: Deprecate general cache settings (#55753)" (#58201) 2020-06-16 14:58:18 -06:00
ml [7.x] Make ModelPlotConfig.annotations_enabled default to ModelPlotConfig.enabled if unset (#57808) (#57815) 2020-06-08 17:41:12 +02:00
modules Revert "Scripting: Deprecate general cache settings (#55753)" (#58201) 2020-06-16 14:58:18 -06:00
monitoring [DOCS] Rename monitoring collection from internal to legacy (#56395) 2020-06-11 10:21:01 -07:00
query-dsl [DOCS] Extends geo_shape query docs to explain behavior when data is indexed as array of shapes (#57806) 2020-06-08 15:06:10 +02:00
release-notes [doc] known issues - week based patterns not working in 7.6 (#58099) (#58227) 2020-06-17 10:54:22 +02:00
rest-api [DOCS] Reformat data streams intro and overview (#57954) (#57993) 2020-06-11 11:32:09 -04:00
rollup [DOCS] Adds collapsible sections to rollup APIs (#54690) 2020-04-02 17:51:16 -07:00
scripting Revert "Scripting: Deprecate general cache settings (#55753)" (#58201) 2020-06-16 14:58:18 -06:00
search Allow index filtering in field capabilities API (#57276) (#58299) 2020-06-18 10:23:26 +02:00
searchable-snapshots/apis [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00
settings [DOCS] Fixes license management links (#58213) 2020-06-16 16:49:48 -07:00
setup [DOCS] Fixes license management links (#58213) 2020-06-16 16:49:48 -07:00
slm [DOCS] Editorial ILM cleanup (#57565) (#57776) 2020-06-05 18:55:51 -07:00
snapshot-restore [DOCS] Fixes problematic terminology (#58184) 2020-06-16 11:43:22 -07:00
sql SQL: Implement TRIM function (#57518) (#57593) 2020-06-03 15:19:48 +02:00
transform [DOCS] Adds web session details example to painless transform examples (#57942) 2020-06-15 15:19:02 +02:00
upgrade [DOCS] Relocate `shard allocation` module content (#56535) (#57448) 2020-06-01 13:15:08 -04:00
vectors
aggregations.asciidoc
analysis.asciidoc
api-conventions.asciidoc [DOCS] Replaces docdir attributes in ML APIs (#57390) (#57467) 2020-06-01 13:46:15 -07:00
async-search.asciidoc
cat.asciidoc
cluster.asciidoc
data-rollup-transform.asciidoc
docs.asciidoc
frozen-indices.asciidoc Add heuristics to compute pre_filter_shard_size when unspecified (#53873) (#54007) 2020-03-24 02:05:15 +01:00
getting-started.asciidoc
glossary.asciidoc [DOCS] Make ILM documentation data stream aware (#58035) (#58110) 2020-06-15 15:16:14 +01:00
gs-index.asciidoc
high-availability.asciidoc [DOCS] Add docs for designing resilient clusters (#47233) (#57743) 2020-06-05 12:08:45 -04:00
how-to.asciidoc [DOCS] Add 'how to' doc about avoiding oversharding (#55480) 2020-04-22 10:44:16 -04:00
index-modules.asciidoc [DOCS] Add search pagination docs (#56785) (#57477) 2020-06-01 16:43:06 -04:00
index.asciidoc [DOCS] Reformat release highlights as What's new. (#58073) 2020-06-15 13:26:03 -07:00
index.x.asciidoc
indices.asciidoc [DOCS] Reformat data streams intro and overview (#57954) (#57993) 2020-06-11 11:32:09 -04:00
ingest.asciidoc
intro.asciidoc [DOCS] Add documentation for near real-time search (#57560) (#58138) 2020-06-15 16:42:57 -04:00
mapping.asciidoc [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00
query-dsl.asciidoc
redirects.asciidoc [DOCS] Move search API's `docvalue_fields` examples (#57760) (#57989) 2020-06-11 11:25:04 -04:00
release-notes.asciidoc Revert "Scripting: Deprecate general cache settings (#55753)" (#58201) 2020-06-16 14:58:18 -06:00
scripting.asciidoc
search.asciidoc [DOCS] Add clear scroll API reference docs (#57367) (#57611) 2020-06-03 11:58:16 -04:00
setup.asciidoc [DOCS] Relocate discovery module content (#56611) (#57454) 2020-06-01 14:13:13 -04:00
upgrade.asciidoc [DOCS] Update upgrade docs for 7.8 (#56281) 2020-05-06 11:47:39 -04:00