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

mapper_parsing_exception #4

Open
bjarman opened this issue Jun 28, 2017 · 7 comments
Open

mapper_parsing_exception #4

bjarman opened this issue Jun 28, 2017 · 7 comments

Comments

@bjarman
Copy link

bjarman commented Jun 28, 2017

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.

@RaananW
Copy link
Owner

RaananW commented Jul 5, 2017

Hi,

just to make sure - what version of ES are you using?

@diogojuliano89
Copy link

diogojuliano89 commented Sep 29, 2017

Hi, I'm using 13.3.1 and I'm having the same problem. When i use the same version that tutorial, i get the error Unhandled rejection Error: Bad Request

@aathirag
Copy link

I am also having the same issue

@RaananW
Copy link
Owner

RaananW commented Nov 21, 2017

The main question is what version of ES-Server you are using. this tutorial was written 2 years ago for ES 2.x . I will eventually find the time to update it...

@aathirag
Copy link

thank you for your reply.
I am using version number : "5.6.3", and "lucene_version": "6.6.1".

@RaananW
Copy link
Owner

RaananW commented Nov 30, 2017

As I said, it's written for an older version. You can watch the repo, I will eventually find the time to update it.

@aathirag
Copy link

ok thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants