OpenSearch/modules
Stuart Tettemer 500205e8c5
Add painless method getByPath, get value from nested collections with dotted path (#43170) (#43606)
Given a nested structure composed of Lists and Maps, getByPath will return the value
keyed by path.  getByPath is a method on Lists and Maps.

The path is string Map keys and integer List indices separated by dot. An optional third
argument returns a default value if the path lookup fails due to a missing value.

Eg.
['key0': ['a', 'b'], 'key1': ['c', 'd']].getByPath('key1') = ['c', 'd']
['key0': ['a', 'b'], 'key1': ['c', 'd']].getByPath('key1.0') = 'c'
['key0': ['a', 'b'], 'key1': ['c', 'd']].getByPath('key2', 'x') = 'x'
[['key0': 'value0'], ['key1': 'value1']].getByPath('1.key1') = 'value1'

Throws IllegalArgumentException if an item cannot be found and a default is not given.
Throws NumberFormatException if a path element operating on a List is not an integer.

Fixes #42769
2019-06-26 09:06:34 -06:00
..
aggs-matrix-stats Backport: Refactor aggregation base classes to remove doEquals() and doHashCode() (#43363) 2019-06-19 22:31:06 +03:00
analysis-common Deprecate CommonTermsQuery and cutoff_frequency (#42619) (#42691) 2019-05-30 18:04:47 +02:00
ingest-common Rename processor test fix (#43035) 2019-06-10 19:23:05 +02:00
ingest-geoip Remove -Xlint exclusions in the ingest-geoip module. (#40629) 2019-04-01 16:21:07 +02:00
ingest-user-agent convert modules to use testclusters (#40804) 2019-04-04 11:45:40 +03:00
lang-expression Allow aggregations using expressions to use _score (#42652) 2019-05-29 13:28:33 -07:00
lang-mustache Fix mustache search template test (#43120) 2019-06-12 09:38:01 -06:00
lang-painless Add painless method getByPath, get value from nested collections with dotted path (#43170) (#43606) 2019-06-26 09:06:34 -06:00
mapper-extras Move dense_vector and sparse_vector to module (#43280) (#43333) 2019-06-18 11:56:04 -04:00
parent-join Backport: Refactor aggregation base classes to remove doEquals() and doHashCode() (#43363) 2019-06-19 22:31:06 +03:00
percolator Fixed ignoring name parameter for percolator queries (#42598) 2019-05-28 09:38:00 +02:00
rank-eval [Docs] Fix common word repetitions (#39703) 2019-04-25 20:47:47 +02:00
reindex Properly serialize remote query in ReindexRequest (#43596) 2019-06-26 10:50:14 -04:00
repository-url Remove Delete Method from BlobStore (#41619) (#42574) 2019-05-27 12:24:20 +02:00
transport-netty4 Rename autoMinMasterNodes to autoManageMasterNodes (#42789) 2019-06-03 12:12:07 +01:00
build.gradle convert modules to use testclusters (#40804) 2019-04-04 11:45:40 +03:00