I have a River on my local instance of ES 1.3.4 and JDBC For MySql 1.3.4.4
This river is working fine and importing data in ES. Problem I am facing that one of my field is a text field and has spaces in it. For example 'Real Time Calculator'. ES is indexing it as 'real', 'time' and 'calculator' instead of 'Real Time Calculator'.
So I am creating mapping using below mentioned JSON:
{
"sale_test": {
"properties": {
"Client": {
"index": "not_analyzed",
"type": "string"
},
"OfferRGU": {
"type": "long"
},
"SaleDate": {
"format": "dateOptionalTime",
"type": "date"
},
"State": {
"type": "string"
}
}
}
}
and Command:
curl -XPUT http://localhost:9200/my_index/_mapping/my_type
But I am getting below mentioned error:
> {"error":"MapperParsingException[Root type mapping not empty after
> parsing! Remaining fields: [sale_test :
> {properties={Client={type=string, index=not_analyzed},
> OfferRGU={type=long}, SaleDate={type=date, format=dateOptionalTime},
> State={type=string}}}]]","status":400}
When I try to view current mapping using below mentioned command:
curl -XGET http://localhost:9200/dgses/sale_test_river/_mapping
I get only this: {}
Thanks for your help.