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
GetFieldMapping API #3941
Labels
Comments
ghost
assigned bleskes
Oct 21, 2013
Will this support _meta? Issue #2857 |
@awick sadly no. This does nothing more (or less) than exposing the current mapping infrastructure on a per field basis. |
bleskes
added a commit
to bleskes/elasticsearch
that referenced
this issue
Oct 29, 2013
This new API allows to get the mapping for a specific set of fields rather than get the whole index mapping and traverse it. The fields to be retrieved can be specified by their full path, index name and field name and will be resolved in this order. In case multiple field match, the first one will be returned. Since we are now generating the output (rather then fall back to the stored mapping), you can specify `include_defaults`=true on the request to have default values returned. Closes elastic#3941
+1 for _meta |
bleskes
added a commit
that referenced
this issue
Oct 30, 2013
This new API allows to get the mapping for a specific set of fields rather than get the whole index mapping and traverse it. The fields to be retrieved can be specified by their full path, index name and field name and will be resolved in this order. In case multiple field match, the first one will be returned. Since we are now generating the output (rather then fall back to the stored mapping), you can specify `include_defaults`=true on the request to have default values returned. Closes #3941
javanna
pushed a commit
to javanna/elasticsearch
that referenced
this issue
Dec 27, 2013
brusic
pushed a commit
to brusic/elasticsearch
that referenced
this issue
Jan 19, 2014
mute
pushed a commit
to mute/elasticsearch
that referenced
this issue
Jul 29, 2015
This new API allows to get the mapping for a specific set of fields rather than get the whole index mapping and traverse it. The fields to be retrieved can be specified by their full path, index name and field name and will be resolved in this order. In case multiple field match, the first one will be returned. Since we are now generating the output (rather then fall back to the stored mapping), you can specify `include_defaults`=true on the request to have default values returned. Closes elastic#3941
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This new API allows retrieving the mappings for specific fields. This is offered as an alternative to traversing the results of the standard Get Mapping API, which returns the entire mapping for indices and types.
The new API is available under the following REST endpoints, allowing to resolve fields for multiple indices and types in one
GET
request:For example, the following call will return the mapping information for the
text
anduser.name
of an index of tweets:Returns:
Similar to other APIs, fields names can be one of the following (in resolution order):
The response will use the same naming specified in the url:
returns
Last, you request outputting default values (suppressed by default):
The text was updated successfully, but these errors were encountered: