Don't create scoreExplain key unless there is data for it
@@ -290,8 +290,9 @@ func (ko *Object) SearchResult(additional additional.Properties) *search.Result
additionalProperties["classification"] = ko.AdditionalProperties()["classification"]
}
}
-
+ if ko.ScoreExplain() != "" {
additionalProperties["scoreExplain"] = ko.ScoreExplain()
+ }
return &search.Result{
ID: ko.ID(),
