OpenSearch/modules/percolator/src
Alan Woodward 3759063d34 Allow specifying an exclusive set of fields on ObjectParser (#52893)
ObjectParser allows you to declare a set of required fields, such that at least one
of the set must appear in an xcontent object for it to be valid. This commit adds
the similar concept of a set of exclusive fields, such that at most one of the set
must be present. It also enables required fields on ConstructingObjectParser, and
re-implements PercolateQueryBuilder.fromXContent() to use object parsing as
an example of how this works.
2020-03-03 10:56:20 +00:00
..
main/java/org/elasticsearch/percolator Allow specifying an exclusive set of fields on ObjectParser (#52893) 2020-03-03 10:56:20 +00:00
test Allow specifying an exclusive set of fields on ObjectParser (#52893) 2020-03-03 10:56:20 +00:00