From 2e1d131d24d5d6ac74294020ec919789388cff82 Mon Sep 17 00:00:00 2001 From: Yuriy Ivon Date: Sat, 29 Jul 2023 19:05:14 +0300 Subject: [PATCH] Fixed a crash in Elasticsearch raw query benchmark --- .../Elasticsearch/ElasticsearchRawQueryExecutorFactory.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DatabaseBenchmark/Databases/Elasticsearch/ElasticsearchRawQueryExecutorFactory.cs b/src/DatabaseBenchmark/Databases/Elasticsearch/ElasticsearchRawQueryExecutorFactory.cs index 78384d6..601006c 100644 --- a/src/DatabaseBenchmark/Databases/Elasticsearch/ElasticsearchRawQueryExecutorFactory.cs +++ b/src/DatabaseBenchmark/Databases/Elasticsearch/ElasticsearchRawQueryExecutorFactory.cs @@ -1,8 +1,9 @@ using DatabaseBenchmark.Core; using DatabaseBenchmark.Core.Interfaces; using DatabaseBenchmark.Databases.Common; -using DatabaseBenchmark.Databases.Elasticsearch.Interfaces; using DatabaseBenchmark.Databases.Common.Interfaces; +using DatabaseBenchmark.Databases.Elasticsearch.Interfaces; +using Elasticsearch.Net; using Nest; using RawQuery = DatabaseBenchmark.Model.RawQuery; @@ -21,6 +22,7 @@ public ElasticsearchRawQueryExecutorFactory( Container.RegisterDecorator(Lifestyle); Container.Register(createClient, Lifestyle); + Container.Register(() => Container.GetInstance().RequestResponseSerializer, Lifestyle); Container.Register(Lifestyle); Container.Register(Lifestyle); Container.Register(Lifestyle);