Sometimes ES index field will be {[ContentltemVersionld, null]}, should skip it.
OC Version 2.1.6
Class : ElasticQuerySource line: 86 to 90
foreach (var document in docs.TopDocs) { results.Add(new JsonObject(document.Select(x => KeyValuePair.Create(x.Key, (JsonNode)JsonValue.Create(x.Value.ToString()))))); }
The x.Value sometimes is null, so throw exception. could change code like following
foreach (var document in docs.TopDocs) { results.Add(new JsonObject(document.Select(x => KeyValuePair.Create(x.Key, (JsonNode)JsonValue.Create("" + x.Value))))); }
Do you want to create a PR? Probably this is the fix: x.Value?.ToString()
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues).
This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here.