有人可以向我解释一下此查询的含义,该查询需要从Elasticsearch 2转换为Elasticsearch 6?
$query = '{
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{ "term": { "pouzivatelId": "5b0e65022a35d13df2236183" } },
{ "term": { "route": "Search:default" } },
{ "term": { "parametre.hladat": 1 } }
]
}
}
}
}
}';
$resp = $this->elastica->request('log/user/_search/exists', Elastica\Request::POST, json_decode($query, true))
->getData();
我不明白几件事。
谢谢。
最佳答案
$ query ='{
“查询”:{
“ bool(boolean) ”:{
“必须”:[
{
“条款”:{
“pouzivatelId”:“5b0e65022a35d13df2236183”
}
},
{
“条款”:{
“route”:“搜索:默认”
}
},
{
“条款”:{
“parametre.hladat”:1
}
}
]
}
}
}';
关于php - PHP + Elasticsearch-从Elastic2到Elastic6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55477874/