matteodem / meteor-easy-search

Easy-to-use search for Meteor with Blaze Components
MIT License
438 stars 68 forks source link

Remove _id before indexing. fixes #571 #606

Closed bompi88 closed 7 years ago

bompi88 commented 7 years ago

Issue with Elasticsearch 5.x, which will not accept documents that contain an _id variable. This PR implements removal of _idbefore indexing, and make use of the ES client to set the id instead. Seems to still work on older versions of ES (tested on ES 1.7).

bompi88 commented 7 years ago

Included in the test app available at https://github.com/bompi88/easy-search-leaderboard.