OpenSearch/docs/reference/search
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
..
request [DOCS] Move search API's `docvalue_fields` examples (#57760) (#57989) 2020-06-11 11:25:04 -04:00
suggesters [DOCS] Move search API's `docvalue_fields` examples (#57760) (#57989) 2020-06-11 11:25:04 -04:00
async-search.asciidoc [DOCS] Async search: clarify behaviour when submit returns final results (#55934) 2020-05-06 10:01:23 +02:00
clear-scroll-api.asciidoc [DOCS] Add clear scroll API reference docs (#57367) (#57611) 2020-06-03 11:58:16 -04:00
count.asciidoc [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00
explain.asciidoc [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00
field-caps.asciidoc Allow index filtering in field capabilities API (#57276) (#58299) 2020-06-18 10:23:26 +02:00
index.asciidoc [DOCS] Add documentation for near real-time search (#57560) (#58138) 2020-06-15 16:42:57 -04:00
multi-search.asciidoc [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00
near-real-time.asciidoc [DOCS] Add documentation for near real-time search (#57560) (#58138) 2020-06-15 16:42:57 -04:00
profile.asciidoc Save memory on numeric sig terms when not top (backport of #56789) (#57221) 2020-05-27 12:03:28 -04:00
rank-eval.asciidoc [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00
request-body.asciidoc [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00
run-a-search.asciidoc Add a reference on returning fields during a search. (#57500) 2020-06-03 09:41:48 -07:00
scroll-api.asciidoc [DOCS] Add scroll API reference docs (#57153) (#57528) 2020-06-02 10:11:12 -04:00
search-fields.asciidoc [DOCS] Move search API's `docvalue_fields` examples (#57760) (#57989) 2020-06-11 11:25:04 -04:00
search-shards.asciidoc [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00
search-template.asciidoc [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00
search.asciidoc [DOCS] Fix routing param in search API docs (#58267) (#58288) 2020-06-17 15:19:53 -04:00
suggesters.asciidoc [DOCS] Reformat suggesters page. (#47010) 2019-09-25 14:42:16 +02:00
validate.asciidoc [7.x][DOCS] Replace docdir attribute with es-repo-dir (#57489) (#57494) 2020-06-01 16:42:53 -07:00