matteodem / meteor-easy-search

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

easy search with elastic search engine #571

Closed Nits7029 closed 7 years ago

Nits7029 commented 7 years ago

1.)Data sync Issue.

when i modify any mongo record then it is not sync with elasticsearch and i am getting error in command prompt as below.

Unhandled rejection [mapper_parsing_exception] Field [_id] is a metadata field and cannot be added inside a document. Use the index API request parameters. :: {"path":"/easysearch/rooms/T3v5qjKDtc44syd7T","query":{},"body":"{\"_id\":\"T3v5qjKDtc44syd7T\",\"roomName\":\"123\",\"roomType\":\"exam\",\"preServiceBlockTime\":\"100\",\"postServiceBlockTime\":\"200\",\"speciality\":\"General\",\"createdAt\":\"2016-01-19T08:26:46.432Z\",\"createdBy\":\"kAudaBRR9PvCoi8R2\",\"lastUpdateAt\":\"2016-01-19T08:33:45.743Z\",\"lastUpdatedBy\":\"kAudaBRR9PvCoi8R2\"}","statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"mapper_parsing_exception\",\"reason\":\"Field [_id] is a metadata field and cannot be added inside a document. Use the index API request parameters.\"}],\"type\":\"mapper_parsing_exception\",\"reason\":\"Field [_id] is a metadata field and cannot be added inside a document. Use the index API request parameters.\"},\"status\":400}"} W20161222-12:02:40.558(5.5)? (STDERR) at respond (C:\Users\COMP1\AppData\Local.meteor\packages\easysearch_elasticsearch\2.1.0\npm\node_modules\elasticsearch\src\lib\transport.js:256:15) W20161222-12:02:40.559(5.5)? (STDERR) at checkRespForFailure (C:\Users\COMP1\AppData\Local.meteor\packages\easysearch_elasticsearch\2.1.0\npm\node_modules\elasticsearch\src\lib\transport.js:219:7) W20161222-12:02:40.560(5.5)? (STDERR) at HttpConnector. (C:\Users\COMP1\AppData\Local.meteor\packages\easysearch_elasticsearch\2.1.0\npm\node_modules\elasticsearch\src\lib\connectors\http.js:155:7) W20161222-12:02:40.560(5.5)? (STDERR) at IncomingMessage.wrapper (C:\Users\COMP1\AppData\Local.meteor\packages\easysearch_elasticsearch\2.1.0\npm\node_modules\elasticsearch\node_modules\lodash\index.js:3095:19) W20161222-12:02:40.562(5.5)? (STDERR) at emitNone (events.js:72:20) W20161222-12:02:40.563(5.5)? (STDERR) at IncomingMessage.emit (events.js:166:7) W20161222-12:02:40.566(5.5)? (STDERR) at endReadableNT (_stream_readable.js:923:12) W20161222-12:02:40.570(5.5)? (STDERR) at nextTickCallbackWith2Args (node.js:458:9) W20161222-12:02:40.571(5.5)? (STDERR) at process._tickCallback (node.js:372:17)