Need help on defining pipeline on index / type.
I have tried the ingest pipeline on the document for given index and type.
Actual JSON :
{
"geopoint": {
"lon": 48.845877,
"lat": 8.821861,
"alt": 0.0
}
}
I have defined a pipeline like below
PUT _ingest/pipeline/geo-pipeline
{
"description" : "remove unsupported altitude field",
"processors" : [
{
"remove" : {
"field": "geopoint.alt",
"ignore_failure" : true
}
}
]
}
This works fine when I tried to add manually a single data like this
PUT index1/type1/1234?pipeline=geo-pipeline
{
"geopoint": {
"lon": 48.845877,
"lat": 8.821861,
"alt": 0.0
}
}
I use mongo-connector which automatically index all data from MongoDB to ES. Initially while defining mappings I used to write script to remove the data. Since I have upgraded my ES version to 5.4.0 while indexing I want this pipeline to be executed. Like if I have 1000 docs and this pipeline has to be executed when mongo-connector syncs data to ES, how do I do that?
THOUGHT?
Cant we define pipeline during mappings? Some what like this
PUT index1/_mapping/geo?pipeline=geopipeline
{
"properties": {
"geopoint": {
"type": "geo_point"
}
}
}