How to add "missing" parameter in multi_terms aggregations using Java Api Client

Hi!

I would like to find a way to add "missing" parameter in multi_terms aggregations using java api client.

     "multi_terms": {
				"terms": [
					{
						"field": "workDate"
					},
					{
						"field": "teamName.keyword",
						"missing" : "0" <- this one
					},
					{
					    "field": "courierName.keyword"

					}
				],
				 "order": {
                    "_key": "asc"
						},
				"size" : 100

			}

I think it should be in MultiTermLookup, but there is only a "field" field.
How can i acheive this?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.