elasticsearch - Elasticsearch 映射 - asciifolding 过滤器
问题描述
我有一个映射:
{
"settings": {
"index": {
"refresh_interval": "-1",
"number_of_shards": "4",
"number_of_replicas": "1",
"analysis": {
"analyzer": {
"lower_ascii": {
"filter": [
"lowercase",
"asciifolding"
],
"type": "custom",
"tokenizer": "standard"
}
}
}
}
},
"mappings": {
"doc": {
"dynamic": "strict",
"properties": {
"field_name": {
"type": "text",
"analyzer": "lower_ascii",
"fielddata": true
}
}
}
}
}
映射中设置了 asciifolding 和小写过滤器。但是该字段的值不是ASCII也不是小写的?有诸如“Námestie Ludvíka Svobodu”之类的原始字符串......我是否遗漏了什么或不理解它?谢谢你的帮助。
解决方案
推荐阅读
- java - 如何使用 AWS Java SDK 以 s3api 查询获取对象列表?
- sql-server - 连接来自子查询的字符串
- javascript - 编译代码后如何使用nodemon?
- python - 如何解释 xgboost 树中的叶索引
- ruby - 如何使用 Ruby/Tk 验证 TkEntry 的内容?
- python - 如何修复 TypeError:只有整数标量数组可以转换为标量索引?
- python - 训练神经网络输入识别不匹配时出错
- c# - 使用 TextFixtureAttribute 设置测试用例源
- html - 如何在 Shiny 和 Shinydashboard 中更改 verbatimTextOutput 的宽度和高度
- amazon-ec2 - 无法通过 CF 安装 aws-cli