elasticsearch/elasticsearch — pull request #8842 by mfelsche (2014-12-09 11:09:24+00:00)
Title: make it possible to register a mapper for dynamic arrays

A DynamicArrayFieldMapperBuilderFactory has to be implemented which returns a
Builder for a mapper that is able to handle dynamic arrays and creates FieldMappers and/or ObjectMappers for it.
It's main usecase is mapping arrays explicitly. For this to work consistently even with dynamic fields
it is necessary to catch parsing dynamic array columns in the indexed sources.

If no DynamicArrayFieldMapperBuilderFactory is bound via guice, everything is working as before.

An example for usage of this feature is: https://github.com/crate/crate/blob/1c6252c27d6b85642915f83ceab48660e47b8c2c/sql/src/main/java/org/elasticsearch/index/mapper/core/ArrayMapper.java
There we actually added an explicit array type and use it for dynamic arrays as well to stay consistent even with dynamically added columns.