I'm using Elasticsearch and create an index with the following information for mapping and settings. The problem I have is that my field `geography.locality` which should use the 'name\_analyser' doesn't seem to use it.

```
{
  "index": "programs",
  "body": {
    "settings": {
      "number_of_shards": 5,
      "analysis": {
        "filter": {
          "elision": {
            "type": "elision",
            "articles": [
              "l",
              "m",
              "t",
              "qu",
              "n",
              "s",
              "j",
              "d"
            ]
          },
          "multi_words": {
            "type": "shingle",
            "min_shingle_size": 2,
            "max_shingle_size": 10
          },
          "name_filter": {
            "type": "edgeNGram",
            "max_gram": 100,
            "min_gram": 2
          }
        },
        "tokenizer": {
          "name_tokenizer": {
            "type": "edgeNGram",
            "max_gram": 100,
            "min_gram": 2
          }
        },
        "analyser": {
          "name_analyser": {          // <-- analyser I want to use on geography.locality
            "tokenizer": "whitespace",
            "type": "custom",
            "filter": [
              "lowercase",
              "multi_words",
              "name_filter",
              "asciifolding"
            ]
          },
          "french": {
            "tokenizer": "letter",
            "filter": [
              "asciifolding",
              "lowercase",
              "elision",
              "stop"
            ]
          },
          "city_name": {
            "type": "custom",
            "tokenizer": "letter",
            "filter": [
              "lowercase",
              "asciifolding"
            ]
          }
        }
      }
    },
    "mappings": {
      "program": {
        "properties": {
          "nid": {
            "type": "integer",
            "index": "not_analyzed"
          },
          "title": {
            "type": "string"
          },
          "language": {
            "type": "string",
            "index": "not_analyzed"
          },
          "regulation": {
            "type": "integer"
          },
          "sales_state": {
            "type": "integer"
          },
          "enabled_dwell": {
            "type": "boolean"
          },
          "enabled_invest": {
            "type": "boolean"
          },
          "delivery_date": {
            "type": "date"
          },
          "address": {
            "properties": {
              "country": {
                "type": "string",
                "index": "not_analyzed"
              },
              "locality": {
                "type": "string",
                "analyser": "name_analyser"
              },
              "postal_code": {
                "type": "integer"
              },
              "thoroughfare": {
                "type": "string",
                "index": "not_analyzed"
              },
              "premise": {
                "type": "string",
                "index": "not_analyzed"
              }
            }
          },
          "location": {
            "type": "geo_point"
          },
          "geography": {
            "properties": {
              "locality": {
                "type": "string",
                "analyser": "name_analyser"  // ... here :-/
              },
              "department": {
                "type": "string",
                "index": "not_analyzed"
              },
              "region": {
                "type": "string",
                "index": "not_analyzed"
              }
            }
          },
          "lots": {
            "type": "nested",
            "include_in_all": false,
            "properties": {
              "lot_type": {
                "type": "integer"
              },
              "rooms": {
                "type": "integer"
              },
              "price_vat_inc": {
                "type": "integer"
              },
              "price_reduced_vat_inc": {
                "type": "integer"
              },
              "price_vat_ex": {
                "type": "integer"
              }
            }
          }
        }
      }
    }
  }
}

```

Here's the output given by ES for the mapping registered for this index.

```
{
  "program": {
    "properties": {
      "address": {
        "properties": {
          "country": {
            "index": "not_analyzed",
            "type": "string"
          },
          "premise": {
            "index": "not_analyzed",
            "type": "string"
          },
          "locality": {
            "type": "string"
          },
          "postal_code": {
            "type": "integer"
          },
          "thoroughfare": {
            "index": "not_analyzed",
            "type": "string"
          }
        }
      },
      "sales_state": {
        "type": "integer"
      },
      "nid": {
        "type": "integer"
      },
      "language": {
        "index": "not_analyzed",
        "type": "string"
      },
      "title": {
        "type": "string"
      },
      "enabled_invest": {
        "type": "boolean"
      },
      "geo_point": {
        "type": "string"
      },
      "lots": {
        "include_in_all": false,
        "type": "nested",
        "properties": {
          "rooms": {
            "include_in_all": false,
            "type": "integer"
          },
          "price_vat_inc": {
            "include_in_all": false,
            "type": "integer"
          },
          "price_vat_ex": {
            "include_in_all": false,
            "type": "integer"
          },
          "lot_type": {
            "include_in_all": false,
            "type": "integer"
          },
          "price_reduced_vat_inc": {
            "include_in_all": false,
            "type": "integer"
          }
        }
      },
      "enabled_dwell": {
        "type": "boolean"
      },
      "delivery_date": {
        "format": "dateOptionalTime",
        "type": "date"
      },
      "regulation": {
        "type": "integer"
      },
      "geography": {
        "properties": {
          "locality": {
            "type": "string"      // name_analyser should show up here right?????
          },
          "department": {
            "index": "not_analyzed",
            "type": "string"
          },
          "region": {
            "index": "not_analyzed",
            "type": "string"
          }
        }
      },
      "location": {
        "type": "geo_point"
      }
    }
  }
}

```

Does anybody knows what I am doing wrong? I'm kind of lost about this.