我正在通过Firefox浏览器搜索以下URI:
http://localhost: 9200/xyz-leads/领导/_search ? q = datetimeHour: 22 _09_2015__12&, deliveryType:邮件
但是我只收到deliveryType:RVS的点击,而不是EMAIL。
如果我搜索deliveryType:RVS,我得到3个结果。
我知道RVS有3个结果,EMAIL有上面的datetimeHour,总共有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"
}
您放入URL(即在q=...
参数中)的查询字符串查询需要根据查询字符串查询语法格式良好
试试这个代替(即使用AND
代替&&
)
http://localhost:9200/xyz-leads/lead/_search?q=datetimeHour:22_09_2015__12%20AND%20deliveryType:EMAIL