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

Throw an exception if field mapping is invalid #9927

Closed
clintongormley opened this issue Feb 27, 2015 · 2 comments
Closed

Throw an exception if field mapping is invalid #9927

clintongormley opened this issue Feb 27, 2015 · 2 comments
Labels
>enhancement 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

Currently we silently ignore invalid field mappings, eg:

PUT test1
{
  "mappings": {
    "searchText": {
      "properties": {
        "foo": {
          "type": "string",
          "anlayzer": "snowball",
          "foo": "bar"
        }
      }
    }
  }
}

We should throw an exception instead.

Related to #8870

@clintongormley clintongormley added >enhancement help wanted adoptme :Search Foundations/Mapping Index mappings, including merging and defining field types v2.0.0-beta1 labels Feb 27, 2015
@clintongormley clintongormley changed the title Throw an exception if field mappings is invalid Throw an exception if field mapping is invalid Feb 27, 2015
@colings86
Copy link
Contributor

@clintongormley this should have been solved in #7534 (pushed only to master). If we have missed a case this issue should be re-labelled as a bug

@clintongormley
Copy link
Contributor Author

@colings86 it is fixed in master - thanks, closing

@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
>enhancement 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