Mapping
PUT /my_index/_mapping/my_type
{
"properties": {
"title": {
"type": "string",
"analyzer": "standard",
"fields": {
"folded": {
"type": "string",
"analyzer": "folding"
}
}
}
}
}
Analysing: title.folded
GET /my_normal/_analyze { "field": "{title.folded}", "text": "Esta está loca" }
Analysing title:
GET /my_normal/_analyze
{
"field": "{title}",
"text": "Esta está loca"
}
Output:
{
"tokens": [
{
"token": "esta",
"start_offset": 0,
"end_offset": 4,
"type": "<ALPHANUM>",
"position": 0
},
{
"token": "está",
"start_offset": 5,
"end_offset": 9,
"type": "<ALPHANUM>",
"position": 1
},
{
"token": "loca",
"start_offset": 10,
"end_offset": 14,
"type": "<ALPHANUM>",
"position": 2
}
]
}
Hi,
Can someone please explain me why I am getting same output for both the case