Elasticsearch クエリの結果をフィルタリングして、空でないフィールドを持つものだけを取得したい
例えば。次のデータを与える
{
total: 4912,
max_score: 1,
hits: [
{
{
_index: "gcba",
_type: "bafici",
_id: "5a93472b-5db4-4ff9-8c8a-d13158e72d5f-62",
_score: 1,
_source: {
id_film: "23",
title: "great film",
}
},
{
_index: "gcba",
_type: "bafici",
_id: "2732fbf4-4e55-4794-8e98-e5d5fa6a0419-40",
_score: 1,
_source: {
name: "conference",
[...]
}
}
}
次のようなものを発行したいと思います
.../_search?from=1&size=100&q=id_film:'*'
id_film 値を持つ要素のみを取得する