I am trying to make some field not analyzed in jdbc river but this code doesn't seem to work:
PUT /_river/performance/_meta
{
"type" : "jdbc",
"jdbc" : {
"url" : "jdbc:postgresql://localhost:5432/testdb",
"user" : "test",
"password" : "test#",
"locale" : "en_US",
"sql" : "SELECT * from test",
"elasticsearch" : {
"cluster" : "realtime",
"host" : "localhost",
"port" : 9300
},
"index" : "performance",
"type" : "perf1",
"schedule": "0 0/1 * * * ?",
"index_settings" : {
"index" : {
"number_of_shards" : 1
}
},
"type_mapping": {
"perf1" : {
"properties" : {
"bsc" : {
"type" : "string",
"index" : "not_analyzed"
}
}
}
}
}
}
Is my mapping not correct?