use of org.elasticsearch.index.mapper.array.DynamicArrayFieldMapperBuilderFactoryProvider in project crate by crate.
the class LuceneQueryBuilderTest method createMapperService.
private MapperService createMapperService(Index index, Settings indexSettings, AnalysisService analysisService) {
DynamicArrayFieldMapperBuilderFactoryProvider arrayMapperProvider = new DynamicArrayFieldMapperBuilderFactoryProvider();
arrayMapperProvider.dynamicArrayFieldMapperBuilderFactory = new ArrayMapper.BuilderFactory();
IndicesModule indicesModule = new IndicesModule();
indicesModule.registerMapper(ArrayMapper.CONTENT_TYPE, new ArrayMapper.TypeParser());
return new MapperService(index, indexSettings, analysisService, new SimilarityLookupService(index, indexSettings), null, indicesModule.getMapperRegistry(), arrayMapperProvider);
}
Aggregations