MappingLookup became capable of parsing documents because we needed the search execution context to expose the ability to parse a document that did not depend on a mutable document mapper (only the percolator uses this feature). In hindsight, parsing documents is quite a specific usecase that does not quite fit in MappingLookup. Also, it introduces the need for MappingLookup to hold IndexSettings, IndexAnalyzers and DocumentParser only for that purpose. Instead, we can expose the DocumentParser by making it public and make its parse method accept a MappingLookup instance. |
||
---|---|---|
.. | ||
src | ||
build.gradle |