Skip to content

Commit

Permalink
Fix merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Oct 27, 2023
1 parent 9eb6f65 commit 1b128c1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
import org.elasticsearch.indices.recovery.plan.RecoveryPlannerService;
import org.elasticsearch.indices.recovery.plan.ShardSnapshotsService;
import org.elasticsearch.inference.InferenceServiceRegistry;
import org.elasticsearch.ingest.FieldInferenceBulkRequestPreprocessor;
import org.elasticsearch.ingest.IngestService;
import org.elasticsearch.monitor.MonitorService;
import org.elasticsearch.monitor.fs.FsHealthService;
Expand Down Expand Up @@ -702,6 +703,10 @@ private void construct(Environment initialEnvironment, NodeServiceProvider servi
searchModule.getRequestCacheKeyDifferentiator(),
documentParsingObserverSupplier
);
final FieldInferenceBulkRequestPreprocessor fieldInferenceBulkRequestPreprocessor = new FieldInferenceBulkRequestPreprocessor(
documentParsingObserverSupplier,
client
);

final var parameters = new IndexSettingProvider.Parameters(indicesService::createIndexMapperServiceForValidation);
IndexSettingProviders indexSettingProviders = new IndexSettingProviders(
Expand Down Expand Up @@ -1076,6 +1081,7 @@ record PluginServiceInstances(
b.bind(ScriptService.class).toInstance(scriptService);
b.bind(AnalysisRegistry.class).toInstance(analysisModule.getAnalysisRegistry());
b.bind(IngestService.class).toInstance(ingestService);
b.bind(FieldInferenceBulkRequestPreprocessor.class).toInstance(fieldInferenceBulkRequestPreprocessor);
b.bind(IndexingPressure.class).toInstance(indexingLimits);
b.bind(UsageService.class).toInstance(usageService);
b.bind(AggregationUsageService.class).toInstance(searchModule.getValuesSourceRegistry().getUsageService());
Expand Down

0 comments on commit 1b128c1

Please sign in to comment.