Open jonlachlan opened 8 years ago
Hi was able to resolve this by manually modifying the packages script to remove the doc._id field, where you have this
alanning_elasticsearch.js file in package folder Before:
// create a document in Elastic Search self.EsClient.index({ index: config.index, type: config.type, id: doc._id, body: doc });
After:
doc.listing_id = doc._id.toString();
delete doc._id;
// create a document in Elastic Search
self.EsClient.index({
index: config.index,
type: config.type,
id: doc.listing_id,
body: doc
});
Just troubleshooting so the proper thing will be to modify the package so that in insert or update into elastic search, it renames the field _id into another field when saving the body (Elasticsearch throws this error because it uses a field called _id internally as well)
Hi there, I'm working on integrating elasticsearch using this library and the example (https://github.com/Meteor-NY/devshop-elasticsearch). I have a hook that looks like this:
However when I insert a new doc, e.g.
VolunteerProfiles.insert({interests: "Bike jumping, skydiving, political research, Javascript programming"})
I have the following errors in Meteor:And here's what it says in the ElasticSearch log:
Unfortunately I'm a bit stumped by this. It looks like it has to do with the _id mapping and the dynamic type detection of Elastic.