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
memberExpressionExpression<Func<TDocument, TMember>>The member expression.
valueintThe value.
Returns
- IndexOptionsBuilder<TDocument>
The builder (so method calls can be chained).
Type Parameters
TMemberThe type of the member.