Skip to content

Setting index_analyzer incorrectly sets analyzer #2329

@clintongormley

Description

@clintongormley

Setting just index_analyzer incorrectly sets analyzer:

curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1'  -d '
{
   "mappings" : {
      "test" : {
         "properties" : {
            "foo" : {
               "index_analyzer" : "whitespace",
               "type" : "string"
            }
         }
      }
   }
}
'

curl -XGET 'http://127.0.0.1:9200/test/test/_mapping?pretty=1' 

# {
#    "test" : {
#       "properties" : {
#          "foo" : {
#             "type" : "string",
#             "analyzer" : "whitespace"
#          }
#       }
#    }
# }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions