internal void SetHighlights(SolrNet.Impl.HighlightedSnippets highlights) { Highlights = new HighlightCollection(highlights); // Merge the highlights into the fields as well foreach (var h in highlights) { if (Fields.ContainsKey(h.Key)) { Fields[h.Key].Highlights = h.Value.ToArray(); } } }
private PlainResult() { Fields = new FieldCollection(); Highlights = new HighlightCollection(); Id = string.Empty; }