Skip to content

Commit

Permalink
Update src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services…
Browse files Browse the repository at this point in the history
…/ElasticQuerySource.cs

Co-authored-by: Mike Alhayek <mike@crestapps.com>
  • Loading branch information
denispetrische and MikeAlhayek authored Oct 21, 2024
1 parent 3def80d commit 18320bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public async Task<IQueryResults> ExecuteQueryAsync(Query query, IDictionary<stri

keyValuePairs.Add(KeyValuePair.Create("_score", (JsonNode)JsonValue.Create(document.Score.Value.ToString())));

var highlights = JsonSerializer.Serialize(document.Highlight, options);
var highlights = JsonSerializer.Serialize(document.Highlight, JOptions.UnsafeRelaxedJsonEscaping);
keyValuePairs.Add(KeyValuePair.Create("Highlight", (JsonNode)JsonValue.Create(highlights)));

results.Add(new JsonObject(keyValuePairs));
Expand Down

0 comments on commit 18320bf

Please sign in to comment.