MultiTerm Aggregations should support missing
property
#7119
Labels
8.x
Relates to a 8.x client version
missing
property
#7119
Elastic.Clients.Elasticsearch version:
8.0.3
Elasticsearch version:
8.5.2
.NET runtime version:
Operating system version:
macOS Ventura 13.0.1 (22A400)
Description of the problem including expected versus actual behavior:
Consider the following:
It is possible, and desirable, to supply a value when the field is missing its value, so it can be included in the aggregation as very wisely the folks of the engine have provided (see docs)
It is not obvious to me how we can specify this using the 8.x client and using
MultiTermLookup
/MultiTermLookupDescriptor
. It appears to only supportField
.Expected behavior
There should be a way to supply a
missing
property for each term, e.g. by adding aMissing
property onMultiTermLookup
.I suspect there will be a challenge with the type of said
Missing
property (or it could be infered from the type of the Field). In my opinion, this is a challenge for strongly typed clients anyway since thebucket
response looks like this:I am not trying to get into how it should be implemented, but personally, I find
multi_terms
extremely useful so I will take anything as a stop-gap solution rather than not being able to it at all.The text was updated successfully, but these errors were encountered: