gpt4 book ai didi

search - Elasticsearch :URI搜索不准确

转载 作者:行者123 更新时间:2023-12-03 01:04:12 24 4
gpt4 key购买 nike

我正在通过Webbrowser Firefox使用以下URI搜索:

http://localhost:9200/xyz-leads/lead/_search?q=datetimeHour:22_09_2015__12&&deliveryType:EMAIL



但我只会通过deliveryType:RVS而不是EMAIL获得成功。

如果我搜索deliveryType:RVS,我将获得3次点击。

我知道总共有datetimeHour的RVS有3个结果,而EMAIL则有0个结果。

我猜ElasticSearch的标准行为是,它忽略第二个搜索值“deliveryType”,并且如果两者均没有结果,则仅使用第一个“datetimeHour”。

如果我搜索deliveryType:Email,那么我不希望响应中有任何点击。

我是否需要设置一些其他的ElasticSearch参数?

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-uri-request.html
_source: {
country: "DEU",
brand: "A",
leadGroup: "TEST",
leadID: 108798,
deliveryType: "RVS",
datetime: 1442916913000,
datetimeFormatted: "22.09.2015 12:15:13",
datetimeHour: "22_09_2015__12",
datetimeDay: "22_09_2015"
}

最佳答案

根据query string query syntax,您填充到网址中的查询字符串查询(即q=...参数中的查询字符串)的格式必须正确

尝试以下操作(即,使用AND而不是&&)

http://localhost:9200/xyz-leads/lead/_search?q=datetimeHour:22_09_2015__12%20AND%20deliveryType:EMAIL

关于search - Elasticsearch :URI搜索不准确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32970655/

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