Very new to elasticsearch. Trying to set up so can search with either for either Santé or Sante, but can't get the ascii version in the index to "analyzer":"fingerprint". I'm probably doing this all wrong.
PUT testindex
{
"settings" : {
"number_of_shards" : 1
},
"mappings" : {
"citysearch" : {
"properties" : {
"city_id" : {"type": "integer", "index": "no" },
"city" : {"type": "text" },
"url" : { "type" : "text", "index": "no" },
"location" : { "type" : "text" },
"location_ascii" : { "type" : "text", "analyzer":"fingerprint" }
}
}
}
}
PUT /testindex/citysearch/59053000000
{
"city_id" : 59053,
"city" : "Santa Monica, California, United States",
"url" : "/city/us/california/santa-monica",
"location" : "Santé Monica",
"location_ascii" : "Santé the Monica"
}
GET /testindex/citysearch/59053000000
//results... Why isn't, "location_ascii": "sante monica"?
{
"_index": "testindex",
"_type": "citysearch",
"_id": "59053000000",
"_version": 2,
"found": true,
"_source": {
"city_id": 59053,
"city": "Santa Monica, California, United States",
"url": "/city/us/california/santa-monica",
"location": "Santé Monica",
"location_ascii": "Santé the Monica"
}
}