Open fedcecca opened 9 years ago
You should define a customer mapping. See #105. There are also few geopoint closed issues: https://github.com/richardwilly98/elasticsearch-river-mongodb/issues/218#issuecomment-35824681
thanks you for your answer,
I have a complex document JSon structure. How I can customize the mapping? I have to specify all field into document structure or I can overide only the position.loc mapping. Do you have any exemples? I have created the index (and MongoDB mapping) using the service:
POST http://
Do I have to create before a type "places" for the "index" and after run the same command (POST http://
Thanks in advance.
I don't know if it is a bug or it is a my mistake. I'm using elasticsearch river to import a Mongo DB collection into elasticsearch. The collection have a geo point field (position.loc).
If I try to query using the geo point field using the following query:
{
}
I receive the following error message:
Caused by: org.elasticsearch.index.query.QueryParsingException: [places2_idx] failed to find geo_point field [position.loc]
When I query the mapping I receive the following info about position.loc field :+1: "position": { "properties": { "loc": { "properties": { "coordinates": { "type": "double" }, "index": { "type": "string" }, "type": { "type": "string" } } } } }
I think that the mapping is incorrect. How can I force river to map the field correctly?
Thanks in advance.