Calculation
with_facet_id
faceted_by 計算の出力に ID を追加します。この ID を使用すると、ファセット処理構成から計算結果を取得できます。
構文
calculation with_facet_id(string facet_id)
例
合計 (ファセット ID 付き):.faceted_by(sum("field_name").with_facet_id("unique_ID"))
and
結果のファセット処理を出力に追加します。
構文
calculation and(facet_by facet_by)
例
合計と平均の計算:.faceted_by(sum(field("field_name")).and(avg(field("field_name"))))
例
.faceted_by(sum("field_name").and(avg("field_name")))