search_analyzer。我配置了我的索引:
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"type": "custom",
"tokenizer": "standard",
"norms": "false",
}
}
}
},
"mappings": {
"properties": {
"content": {"type": "text",
"search_analyzer": "my_analyzer",
"analyzer": "standard"},
}
}但它似乎是在使用归一化因子搜索时间。
我的索引中有3份文件:
我在找michael jordan and scottie pippen
"query": {
"bool": {
"must":
[{
"query_string": {
"default_field": "content",
"query": "michael jordan and scottie pippen"
}
}]
}
}我希望以同样的分数得到3个结果,但我得到了3个不同的分数。
如何在搜索时间内忽略归一化因素?
发布于 2022-04-06 06:53:10
AFAIK,norms是在字段级别定义的,而不是在分析器级别定义的,您是否可以尝试在您的content字段上禁用norms,您可以在运行时以及在官方医生中提到的情况下完成它,并看到您正在获得预期的结果。
https://stackoverflow.com/questions/71762064
复制相似问题