Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (25 sloc) 0.893 kb
// -----------------------------------------------------------------------
// <copyright file="RavenQueryHighlightings.cs" company="Hibernating Rhinos LTD">
// Copyright (c) Hibernating Rhinos LTD. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
using System.Collections.Generic;
using Raven.Abstractions.Data;
namespace Raven.Client
{
public class RavenQueryHighlightings
{
private readonly List<FieldHighlightings> fields = new List<FieldHighlightings>();
internal FieldHighlightings AddField(string fieldName)
{
var fieldHighlightings = new FieldHighlightings(fieldName);
this.fields.Add(fieldHighlightings);
return fieldHighlightings;
}
internal void Update(QueryResult queryResult)
{
foreach (var fieldHighlightings in this.fields)
fieldHighlightings.Update(queryResult);
}
}
}
Jump to Line
Something went wrong with that request. Please try again.