OpenSearch/docs/reference/search
Jim Ferenczi a8250b26e7 Add FieldCapabilities (_field_caps) API (#23007)
This change introduces a new API called `_field_caps` that allows to retrieve the capabilities of specific fields.

Example:

````
GET t,s,v,w/_field_caps?fields=field1,field2
````
... returns:
````
{
   "fields": {
      "field1": {
         "string": {
            "searchable": true,
            "aggregatable": true
         }
      },
      "field2": {
         "keyword": {
            "searchable": false,
            "aggregatable": true,
            "non_searchable_indices": ["t"]
            "indices": ["t", "s"]
         },
         "long": {
            "searchable": true,
            "aggregatable": false,
            "non_aggregatable_indices": ["v"]
            "indices": ["v", "w"]
         }
      }
   }
}
````

In this example `field1` have the same type `text` across the requested indices `t`, `s`, `v`, `w`.
Conversely `field2` is defined with two conflicting types `keyword` and `long`.
Note that `_field_caps` does not treat this case as an error but rather return the list of unique types seen for this field.
2017-03-31 15:34:46 +02:00
..
request Clarify preference docs 2017-03-29 12:55:47 -04:00
suggesters Use `typed_keys` parameter to prefix suggester names by type in search responses (#23080) 2017-02-10 10:53:38 +01:00
count.asciidoc Remove `lowercase_expanded_terms` and `locale` from query-parser options. (#20208) 2016-11-02 14:25:08 +01:00
explain.asciidoc Nested queries should avoid adding unnecessary filters when possible. (#23079) 2017-02-14 16:05:19 +01:00
field-caps.asciidoc Add FieldCapabilities (_field_caps) API (#23007) 2017-03-31 15:34:46 +02:00
field-stats.asciidoc CONSOLify indices/analyze.asciidoc and search/field-stats.asciidoc 2017-02-07 20:15:09 +01:00
multi-search.asciidoc Remove ldjson support and document ndjson for bulk/msearch (#23049) 2017-02-08 11:55:50 -05:00
profile.asciidoc [DOCS] Fix inconsistent formatting for fieldnames in profile.asciidoc 2017-01-18 10:41:22 +01:00
request-body.asciidoc Include field-collapsing docs in request-body search 2017-01-30 11:47:12 +01:00
search-shards.asciidoc Add indices and filter information to search shards api output (#21738) 2016-11-22 23:00:25 +01:00
search-template.asciidoc [Docs] Remove unnecessary // TEST[continued] in search-template doc 2017-02-10 10:08:24 +01:00
search.asciidoc CONSOLEify some search docs 2016-09-14 13:06:37 -04:00
suggesters.asciidoc Use `typed_keys` parameter to prefix suggester names by type in search responses (#23080) 2017-02-10 10:53:38 +01:00
uri-request.asciidoc Remove `lowercase_expanded_terms` and `locale` from query-parser options. (#20208) 2016-11-02 14:25:08 +01:00
validate.asciidoc Make it possible to validate a query on all shards instead of a single random shard (#23697) 2017-03-22 17:39:21 -04:00