Table of Contents

Method Add

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

Add(IEnumerable<SearchScoreFunction<TDocument>>)

Creates a function that adds a series of numbers.

public SearchScoreFunction<TDocument> Add(IEnumerable<SearchScoreFunction<TDocument>> operands)

Parameters

operands IEnumerable<SearchScoreFunction<TDocument>>

An array of expressions, which can have negative values.

Returns

SearchScoreFunction<TDocument>

An addition score function.

Add(params SearchScoreFunction<TDocument>[])

Creates a function that adds a series of numbers.

public SearchScoreFunction<TDocument> Add(params SearchScoreFunction<TDocument>[] operands)

Parameters

operands SearchScoreFunction<TDocument>[]

An array of expressions, which can have negative values.

Returns

SearchScoreFunction<TDocument>

An addition score function.