This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Description
When I run this demo I get this error:
(node:1695) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [mapper_parsing_exception] Mapping definition for [suggest] has unsupported parameters: [payloads : true] :: {"path":"/randomindex/_mapping/document","query":{},"body":"{"properties":{"title":{"type":"string"},"content":{"type":"string"},"suggest":{"type":"completion","analyzer":"simple","search_analyzer":"simple","payloads":true}}}","statusCode":400,"response":"{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Mapping definition for [suggest] has unsupported parameters: [payloads : true]"}],"type":"mapper_parsing_exception","reason":"Mapping definition for [suggest] has unsupported parameters: [payloads : true]"},"status":400}"}
(node:1695) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.