Search in sources :

Example 1 with DynamicArrayFieldMapperBuilderFactoryProvider

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);
}
Also used : DynamicArrayFieldMapperBuilderFactoryProvider(org.elasticsearch.index.mapper.array.DynamicArrayFieldMapperBuilderFactoryProvider) IndicesModule(org.elasticsearch.indices.IndicesModule) SimilarityLookupService(org.elasticsearch.index.similarity.SimilarityLookupService) ArrayMapper(org.elasticsearch.index.mapper.ArrayMapper) MapperService(org.elasticsearch.index.mapper.MapperService)

Aggregations

ArrayMapper (org.elasticsearch.index.mapper.ArrayMapper)1 MapperService (org.elasticsearch.index.mapper.MapperService)1 DynamicArrayFieldMapperBuilderFactoryProvider (org.elasticsearch.index.mapper.array.DynamicArrayFieldMapperBuilderFactoryProvider)1 SimilarityLookupService (org.elasticsearch.index.similarity.SimilarityLookupService)1 IndicesModule (org.elasticsearch.indices.IndicesModule)1