Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic=false on mapping #14

Open
geogeim opened this issue Feb 20, 2021 · 0 comments
Open

dynamic=false on mapping #14

geogeim opened this issue Feb 20, 2021 · 0 comments

Comments

@geogeim
Copy link

geogeim commented Feb 20, 2021

I would like to disable dynamic mapping at the type level. I see that there's an undocumented option on @EsEntity anotation but it doesn't work, it sets dynamic on the query parameter and that causes an error when creating the mapping on the index:

Elasticsearch TRACE: 2021-02-20T14:57:59Z
  -> PUT http://localhost:9200/search/_mapping?type=search&dynamic=false&include_type_name=true
  {
    "properties": {
...
    }
  }
  <- 400
  {
    "error": {
      "root_cause": [
        {
          "type": "illegal_argument_exception",
          "reason": "request [/search/_mapping] contains unrecognized parameter: [dynamic]"
        }
      ],
      "type": "illegal_argument_exception",
      "reason": "request [/search/_mapping] contains unrecognized parameter: [dynamic]"
    },
    "status": 400
  }

ElasticSearch v7.10.1

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

No branches or pull requests

1 participant