Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams "type": "mapper_parsing_exception", "reason": "failed to parse field [value.value] of type [long] in document with id '4'. Preview of field's value: 'test'" "type": "mapper_parsing_exception", "reason": "failed to parse field [value.value] of type [long] in document with id '4'. Preview of field's value: 'test'", "caused_by": { "type": "illegal_argument_exception", "reason": "For input string: \"test\"" "status": 400

I know the naming convention is bad, still, this is a valid JSON request, not sure why it doesn't allow it.

This error is telling you that you don't have a mapping for the property value within your value object property. The below example would property set the value.value property within your mytest index:

PUT mytest
   "mappings": {
      "properties": {
         "value": {
            "type": "object",
            "properties": {
               "value": {
                  "type": "text"

However, I don't think that's what your intention was. As a best practice, try following the Elastic Common Schema (ECS) for naming your index properties.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.