我正在使用下面的normalizer,我想跳过某些值,比如“null”(作为字符串的null)和“”(空字符串),而不是创建令牌。有什么需要添加的设置吗?
{
"analysis": {
"normalizer": {
"my_normalizer": {
"filter": [
"uppercase"
],
"type": "custom"
}
}
}
}
所以对于下面的请求-get indexname/\u analyze
{"normalizer":"my_normalizer","text":"null"}
或
{"normalizer":"my_normalizer","text":""}
分别为“null”和“”字符串的当前响应
{
"tokens": [
{
"token": "NULL",
"start_offset": 0,
"end_offset": 4,
"type": "word",
"position": 0
}
]
}
{
"tokens": [
{
"token": "",
"start_offset": 0,
"end_offset": 0,
"type": "word",
"position": 0
}
]
}
预期React
{
"tokens": []
}
暂无答案!
目前还没有任何答案,快来回答吧!