コード例 #1
0
        internal FieldHighlightings AddField(string fieldName)
        {
            var fieldHighlightings = new FieldHighlightings(fieldName);

            _fields.Add(fieldHighlightings);
            return(fieldHighlightings);
        }
コード例 #2
0
 /// <inheritdoc />
 IAsyncDocumentQuery <T> IDocumentQueryBase <T, IAsyncDocumentQuery <T> > .Highlight <TValue>(
     Expression <Func <T, TValue> > propertySelector, Expression <Func <T, TValue> > keyPropertySelector, int fragmentLength, int fragmentCount,
     out FieldHighlightings fieldHighlightings)
 {
     Highlight(GetMemberQueryPath(propertySelector), GetMemberQueryPath(keyPropertySelector), fragmentLength, fragmentCount, out fieldHighlightings);
     return(this);
 }
コード例 #3
0
 /// <inheritdoc />
 IDocumentQuery <T> IDocumentQueryBase <T, IDocumentQuery <T> > .Highlight(
     string fieldName,
     int fragmentLength,
     int fragmentCount,
     out FieldHighlightings highlightings)
 {
     Highlight(fieldName, fragmentLength, fragmentCount, out highlightings);
     return(this);
 }
コード例 #4
0
 /// <inheritdoc />
 public void Highlight(string fieldName, string fieldKeyName, int fragmentLength, int fragmentCount, out FieldHighlightings fieldHighlightings)
 {
     throw new NotImplementedException("This feature is not yet implemented");
     //HighlighterKeyName = fieldKeyName;
     //HighlightedFields.Add(new HighlightedField(fieldName, fragmentLength, fragmentCount, null));
     //fieldHighlightings = Highlightings.AddField(fieldName);
 }