Method MetaSearchHighlights
MetaSearchHighlights(FieldDefinition<TSource>)
Creates a search highlights projection.
public ProjectionDefinition<TSource> MetaSearchHighlights(FieldDefinition<TSource> field)
Parameters
field
FieldDefinition<TSource>The field.
Returns
- ProjectionDefinition<TSource>
A search highlights projection.
MetaSearchHighlights<TField>(Expression<Func<TSource, TField>>)
Creates a search highlights projection.
public ProjectionDefinition<TSource> MetaSearchHighlights<TField>(Expression<Func<TSource, TField>> field)
Parameters
field
Expression<Func<TSource, TField>>The field.
Returns
- ProjectionDefinition<TSource>
A search highlights projection.
Type Parameters
TField