は、これは私が与える「と」用語の条件にしたい私の検索フィルタクエリ、 です。フィルタ条件Elasticsearch AND条件
'query' => [
"filtered" => [
"query" => [
"match_all" => []
],
"filter" => [
"bool" => [
"must" => [
"terms" => [
"num" => [
1,2,3
]
],
"terms" => [
"sample" => [
"a", "b"
],
]
]
]
],
'query' => [
'multi_match' => [
'query' => "Hello",
'fields' => ['text'],
'operator' => 'and'
],
]
]
],
が、その動作していない内部 今、私は与えられている必要があります。これに対する他の解決策はありますか?追加「と」condtion、ちょうどブール値でその部分を追加し、必須にしたいとき
検索クエリは何ですか?説明できますか ? – blackmamba
select * from tableここでtext = "%Hello%"とnum(1,2,3)とsample in( "a"、 "b") – Ann