-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Reformat get mapping API. Reformat and reuse multi-index params. #45699
Conversation
* Updates the get mapping API to use the new Elastic API reference template: https://github.com/elastic/docs/blob/master/shared/api-ref-ex.asciidoc * Adds documentation for several multi-index parameters to common-parms.asciidoc for reuse throughout API reference documentation. * Updates API conventions chapter to reuse parameters from common-parms.asciidoc
Pinging @elastic/es-core-features |
Pinging @elastic/es-search |
Pinging @elastic/es-docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left one comment regarding the common param changes.
(Optional, string) Controls what kind of indices that wildcard | ||
expressions can expand to. Valid values are: | ||
|
||
`open`:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be open,closed
rather than simply open
? The next value is also open
, based on the descriptions, the first one should be changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that. It should be all
. Fixed with b8653d3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
expression or `_all` value retrieves only missing or closed indices. This | ||
parameter also applies to <<indices-aliases,index aliases>> that point to a | ||
missing or closed index. | ||
end::allow-no-indices[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jrodewig It seems this behaves opposite of the description here. afaict allow_no_indices = true
will allow empty indices and thus not return an error. allow_no_indices = false
will not allow empty and will return an error if empty indicies are encountered.
cc @weltenwort
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes
Updates the get mapping API to use the new Elastic API reference
template.
Adds documentation for several multi-index parameters to
common-parms.asciidoc
for reuse throughout API referencedocumentation.
Updates API conventions chapter to reuse parameters from
common-parms.asciidoc
.Relates to elastic/docs#937 and #43765
Preview
http://elasticsearch_45699.docs-preview.app.elstc.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html