public SearchLookup(MapperService mapperService, IndexFieldDataService fieldDataService, @Nullable String[] types) { ImmutableMap.Builder<String, Object> builder = ImmutableMap.builder(); docMap = new DocLookup(mapperService, fieldDataService, types); sourceLookup = new SourceLookup(); fieldsLookup = new FieldsLookup(mapperService, types); indexLookup = new IndexLookup(builder); asMap = builder.build(); }