gpt4 book ai didi

elasticsearch - Elasticsearch 错误响应搜索 'IN'值

转载 作者:行者123 更新时间:2023-12-03 02:07:08 25 4
gpt4 key购买 nike

查询:

http://:9200 / rif_orig / rif / _search?q = F7Y *&from = 0&size = 10

响应:

{
"took": 4,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1.0,
"hits": [
{
"_index": "rif_orig",
"_type": "rif",
"_id": "INF7YCOriginale",
"_score": 1.0,
"_source": {
"IDRIF": "INF7YCOriginale",
"R01PRO": "IN",
"R01RIF": "F7YC",
"R01DES": "CANDELA CHAMPION",
"R01PRE": "3.20",
"R01CPR": "",
"ARTPRO": "IN",
"ARTPAG": "1",
"ALTORG": "Originale",
"timestamp": "201407091018"
}
}
]
}
}

查询:

http://:9200 / rif_orig / rif / _search?q = IN&from = 0&size = 10

响应:
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits": [

]
}
}

我尝试了q =“IN”,q = R01PRO:“IN”,q = R01PRO:(IN)q = R01PRO:“\” IN“\”相同的结果...。
“IN”是保留字吗?我该如何逃脱呢。
我正在使用Elastich Search 0.9,但无法立即升级...
谁能帮我?

最佳答案

您正在使用哪个版本的Elasticsearch? “IN”是stop word,但是默认情况下,大于1.0的Elasticsearch版本不会删除停用词。您正在使用旧版本的Elasticsearch或已启用停用词删除功能。

关于elasticsearch - Elasticsearch 错误响应搜索 'IN'值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24664182/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com