You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 👍
"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.
The text was updated successfully, but these errors were encountered:
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://:9200/_river/mongodb/_meta
{
"type": "mongodb",
"mongodb": {
"db": "<MOGO_DB> ",
"collection": "<COLLECTION_NAME>"
},
"index": {
"name": "<COLLECTION_idx",
"type": "places"
}
}
Do I have to create before a type "places" for the "index" and after run the same command (POST http://:9200/_river/mongodb/_meta)?
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 👍
"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.
The text was updated successfully, but these errors were encountered: