-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Give bulk requests the ability to give hints to dynamic mappings #61939
Labels
>feature
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Comments
jpountz
added
>feature
:Search Foundations/Mapping
Index mappings, including merging and defining field types
labels
Sep 3, 2020
Pinging @elastic/es-search (:Search/Mapping) |
If we have this feature, we could standardise on some |
11 tasks
Thank you very much @dnhatn . This histogram feature will greatly help observability! |
dnhatn
added a commit
that referenced
this issue
Apr 8, 2021
This change allows users to specify dynamic templates in a bulk request. ``` PUT myindex { "mappings": { "dynamic_templates": [{ "time_histograms": { "mapping": { "type": "histogram", "meta": { "unit": "s" } } } }] } } ``` ``` POST myindex/_bulk { "index": { "dynamic_templates": { "response_times": "time_histograms" } } } { "@timestamp": "2020-08-12", "response_times": { "values": [1, 10], "counts": [5, 1] }} ``` Closes #61939
dnhatn
added a commit
that referenced
this issue
Apr 10, 2021
This change allows users to specify dynamic templates in a bulk request. ``` PUT myindex { "mappings": { "dynamic_templates": [{ "time_histograms": { "mapping": { "type": "histogram", "meta": { "unit": "s" } } } }] } } ``` ``` POST myindex/_bulk { "index": { "dynamic_templates": { "response_times": "time_histograms" } } } { "@timestamp": "2020-08-12", "response_times": { "values": [1, 10], "counts": [5, 1] }} ``` Closes #61939
62 tasks
javanna
added
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
and removed
Team:Search
Meta label for search team
labels
Jul 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>feature
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
This feature consists of enabling dynamic templates to register arbitrary
match_mapping_types
, e.g.And then allow bulk requests to tell Elasticseach what dynamic template to apply for a given field
This helps when ingesting data whose schema can't be known up-front, such as when collecting metrics from Promotheus or Statsd.
This syntax is an example, it's not set in stone, but the following points were considered:
match_mapping_type
, not actual mappings. Sending actual mappings would be problematic as data shippers typically don't have enough privilege to do mapping updates.The text was updated successfully, but these errors were encountered: