Skip to content
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

Merged
merged 4 commits into from
Aug 21, 2019
Merged

[DOCS] Reformat get mapping API. Reformat and reuse multi-index params. #45699

merged 4 commits into from
Aug 21, 2019

Conversation

jrodewig
Copy link
Contributor

@jrodewig jrodewig commented Aug 19, 2019

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 reference
    documentation.

  • 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

* 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
@jrodewig jrodewig added >docs General docs changes :Search Foundations/Mapping Index mappings, including merging and defining field types :Data Management/Indices APIs APIs to create and manage indices and templates v8.0.0 v7.3.0 v7.4.0 labels Aug 19, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs

Copy link
Contributor

@szabosteve szabosteve left a 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`::
Copy link
Contributor

@szabosteve szabosteve Aug 21, 2019

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.

Copy link
Contributor Author

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.

@jrodewig jrodewig requested a review from szabosteve August 21, 2019 12:20
Copy link
Contributor

@szabosteve szabosteve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jrodewig jrodewig merged commit 00b7dc1 into elastic:master Aug 21, 2019
@jrodewig jrodewig deleted the get-mapping-reformat branch August 21, 2019 13:42
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[]
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this @sqren. I've opened #46450 to correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Indices APIs APIs to create and manage indices and templates >docs General docs changes :Search Foundations/Mapping Index mappings, including merging and defining field types v7.3.0 v7.4.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants