Skip to content

Commit 8a2c022

Browse files
committed
Corrected error that is found during unit test
1 parent 84c1a72 commit 8a2c022

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Nest/Domain/Settings/CustomSimilaritySettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public CustomSimilaritySettings(string name, string type)
1515
{
1616
Name = name;
1717
Type = type;
18+
19+
SimilarityParameters = new Dictionary<string, object>();
1820
}
1921

2022
}

src/Nest/Resolvers/ElasticContractResolver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ protected override JsonContract CreateContract(Type objectType)
5858
if (objectType == typeof(IDictionary<string, AnalyzerBase>))
5959
contract.Converter = new AnalyzerCollectionConverter();
6060

61-
if (objectType == typeof(IDictionary<string, TokenizerBase>))
61+
if (objectType == typeof(IDictionary<string, TokenFilterBase>))
6262
contract.Converter = new TokenFilterCollectionConverter();
6363

64-
if (objectType == typeof(MultiSearchResponse))
64+
if (objectType == typeof(IDictionary<string, TokenizerBase>))
6565
contract.Converter = new TokenizerCollectionConverter();
6666

6767
if (objectType == typeof(IDictionary<string, CharFilterBase>))

0 commit comments

Comments
 (0)