...
|
...
|
@@ -41,41 +41,26 @@ class AutoMail { |
|
|
$not_must[] = ["match_phrase"=>["from.email"=>$str]];
|
|
|
}
|
|
|
}
|
|
|
echo json_encode([
|
|
|
"_source" => ["uuid"],
|
|
|
"query"=>[
|
|
|
"bool"=>[
|
|
|
"must"=>[
|
|
|
["term"=>["folder_as_int" => 1]], // 收件箱
|
|
|
["term"=>["is_auto" => 0]], // 非auto
|
|
|
["term"=>["is_hots" => 0]], // 非预热
|
|
|
["term"=>["deleted" => 0]], // 非删除
|
|
|
// 自动关键字
|
|
|
[
|
|
|
"bool" => [
|
|
|
"should"=> $not_must,
|
|
|
"minimum_should_match" => 1
|
|
|
]
|
|
|
]
|
|
|
]
|
|
|
]
|
|
|
]
|
|
|
]);exit;
|
|
|
|
|
|
// 查询自动回的邮件
|
|
|
$lists = $es->search([
|
|
|
"_source" => ["uuid"],
|
|
|
"query"=>[
|
|
|
"bool"=>[
|
|
|
"must"=>[
|
|
|
["term"=>["folder_as_int" => 1]], // 收件箱
|
|
|
["term"=>["is_auto" => 0]], // 非auto
|
|
|
["term"=>["is_hots" => 0]], // 非预热
|
|
|
["term"=>["deleted" => 0]], // 非删除
|
|
|
// 自动关键字
|
|
|
[
|
|
|
"bool" => [
|
|
|
"should"=> $not_must,
|
|
|
"minimum_should_match" => 1
|
|
|
"constant_score"=>[
|
|
|
"filter"=>[
|
|
|
"bool"=>[
|
|
|
"must"=>[
|
|
|
["term"=>["folder_as_int" => 1]], // 收件箱
|
|
|
["term"=>["is_auto" => 0]], // 非auto
|
|
|
["term"=>["is_hots" => 0]], // 非预热
|
|
|
["term"=>["deleted" => 0]], // 非删除
|
|
|
// 自动关键字
|
|
|
[
|
|
|
"bool" => [
|
|
|
"should"=> $not_must,
|
|
|
"minimum_should_match" => 1
|
|
|
]
|
|
|
]
|
|
|
]
|
|
|
]
|
|
|
]
|
...
|
...
|
|