-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Closed
Copy link
Labels
:Data Management/Ingest NodeExecution or management of Ingest Pipelines including GeoIPExecution or management of Ingest Pipelines including GeoIP>bug
Description
Elasticsearch version : 6.5.0
OS version (uname -a if on a Unix-like system): Ubuntu 18.04
Description of the problem including expected versus actual behavior:
Steps to reproduce:
- Create a pipeline that will modify
_indexfield of the document.
PUT _ingest/pipeline/index_routing
{
"description" : "route document to proper index and shard",
"processors" : [
{
"date_index_name" : {
"field" : "posted_date",
"date_formats" : [
"ISO8601"
],
"date_rounding" : "y",
"index_name_format" : "yyyy",
"index_name_prefix" : "search-"
}
}
]
}
- Create a index with default_pipeline
PUT test_index
{
"settings": {
"default_pipeline": "index_routing"
},
"aliases": {
"my_index_alias": {}
}
}
- Create destination index
PUT search-2018
{}
- Index something
PUT my_index_alias/_doc/first_doc
{
"posted_date": "2018-01-01T00:00:00"
}
Then we can find that the document has been indexed into test_index instead of search-2018.
Metadata
Metadata
Assignees
Labels
:Data Management/Ingest NodeExecution or management of Ingest Pipelines including GeoIPExecution or management of Ingest Pipelines including GeoIP>bug