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

The _index field mapping does not accept enabled #15081

Closed
clintongormley opened this issue Nov 28, 2015 · 2 comments
Closed

The _index field mapping does not accept enabled #15081

clintongormley opened this issue Nov 28, 2015 · 2 comments
Labels
>bug good first issue low hanging fruit help wanted adoptme :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Comments

@clintongormley
Copy link
Contributor

According to #9870, the _index field mapping should accept the enabled parameter, but it throws an exception:

PUT trial
{
  "mappings": {
    "doc": {
      "_index": {
        "enabled": true
      }
    }
  }
}

Returns:

{
   "error": {
      "root_cause": [
         {
            "type": "mapper_parsing_exception",
            "reason": "Mapping definition for [_index] has unsupported parameters:  [enabled : true]"
         }
      ],
      "type": "mapper_parsing_exception",
      "reason": "mapping [doc]",
      "caused_by": {
         "type": "mapper_parsing_exception",
         "reason": "Mapping definition for [_index] has unsupported parameters:  [enabled : true]"
      }
   },
   "status": 400
}
@rjernst
Copy link
Member

rjernst commented Nov 28, 2015

We removed this setting, as it is no longer necessary: #12329.

I think we just need to update the docs?

@clintongormley
Copy link
Contributor Author

@rjernst I'd completely forgotten about that. Thanks for the reminder. I've updated the docs accordingly

@javanna javanna added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug good first issue low hanging fruit help wanted adoptme :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

3 participants