Skip to content

Commit

Permalink
Fix FieldCaps documentation
Browse files Browse the repository at this point in the history
Fix the expected output for field_caps call.
Fixes #24413
  • Loading branch information
jimczi authored May 2, 2017
1 parent 186b401 commit 9d8254f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/reference/search/field-caps.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ Supported request options:
The field capabilities api returns the following information per field:

[horizontal]
`is_searchable`::
`searchable`::

Whether this field is indexed for search on all indices.

`is_aggregatable`::
`aggregatable`::

Whether this field can be aggregated on all indices.

Expand Down Expand Up @@ -88,22 +88,22 @@ GET _field_caps?fields=rating,title
"fields": {
"rating": { <1>
"long": {
"is_searchable": true,
"is_aggregatable": false,
"searchable": true,
"aggregatable": false,
"indices": ["index1", "index2"],
"non_aggregatable_indices": ["index1"] <2>
},
"keyword": {
"is_searchable": false,
"is_aggregatable": true,
"searchable": false,
"aggregatable": true,
"indices": ["index3", "index4"],
"non_searchable_indices": ["index4"] <3>
}
},
"title": { <4>
"text": {
"is_searchable": true,
"is_aggregatable": false
"searchable": true,
"aggregatable": false
}
}
Expand Down

0 comments on commit 9d8254f

Please sign in to comment.