elasticsearch/elasticsearch — pull request #6793 by bleskes (2014-07-09 06:28:44+00:00)
Title: [Code] Control whether MapperService docMapper iterator should contain DEFAULT_MAPPING

At the moment one can iterate the MapperService to go through all document mappers. This includes the document mapper of DEFAULT_MAPPING, which may be surprising and lead to unintended results. This commit removes the Iterable implementation and add a docMappers method that asks the caller to make an explicit choice