update dependency - fix query with dash (-) ElasticSearch reads as not

This commit is contained in:
Frede Hundewadt 2022-12-14 11:24:53 +01:00
parent 7efbcca2da
commit 8a5a527788
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@
<GenerateDocumentationFile>True</GenerateDocumentationFile> <GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="NewtonSoft.Json" Version="13.0.1" /> <PackageReference Include="NewtonSoft.Json" Version="13.0.2" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\fcs-common\FCS.Lib.Common.csproj" /> <ProjectReference Include="..\fcs-common\FCS.Lib.Common.csproj" />

View file

@ -105,7 +105,7 @@ namespace FCS.Lib.Virk
); );
} }
query.EntityName = query.EntityName.Replace("A/S", "").Trim().Replace(" ", " AND "); query.EntityName = query.EntityName.Replace("A/S", "").Trim().Replace(" ", " AND ").Replace("-", " AND ");
// name query // name query
return new JObject( return new JObject(
new JProperty("_source", new JProperty("_source",