Method SetWeight
SetWeight<TMember>(Expression<Func<TDocument, TMember>>, int)
Sets the weight of a field for the text index.
public IndexOptionsBuilder<TDocument> SetWeight<TMember>(Expression<Func<TDocument, TMember>> memberExpression, int value)
Parameters
memberExpression
Expression<Func<TDocument, TMember>>The member expression.
value
intThe value.
Returns
- IndexOptionsBuilder<TDocument>
The builder (so method calls can be chained).
Type Parameters
TMember
The type of the member.