Click or drag to resize

CompoundSearchDefinitionBuilderTDocument Class

A builder for compound search definitions.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.SearchCompoundSearchDefinitionBuilderTDocument

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public sealed class CompoundSearchDefinitionBuilder<TDocument>

Type Parameters

TDocument
The type of the document.

The CompoundSearchDefinitionBuilderTDocument type exposes the following members.

Constructors
  NameDescription
Public methodCompoundSearchDefinitionBuilderTDocument
Initializes a new instance of the CompoundSearchDefinitionBuilderTDocument class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFilter(SearchDefinitionTDocument)
Adds clauses which must all match for a document to be included in the results.
Public methodFilter(IEnumerableSearchDefinitionTDocument)
Adds clauses which must all match for a document to be included in the results.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMinimumShouldMatch
Sets a value specifying the minimum number of should clauses the must match to include a document in the results.
Public methodMust(SearchDefinitionTDocument)
Adds clauses which must match to produce results.
Public methodMust(IEnumerableSearchDefinitionTDocument)
Adds clauses which must match to produce results.
Public methodMustNot(SearchDefinitionTDocument)
Adds clauses which must not match for a document to be included in the results.
Public methodMustNot(IEnumerableSearchDefinitionTDocument)
Adds clauses which must not match for a document to be included in the results.
Public methodShould(SearchDefinitionTDocument)
Adds clauses which cause documents in the result set to be scored higher if they match.
Public methodShould(IEnumerableSearchDefinitionTDocument)
Adds clauses which cause documents in the result set to be scored higher if they match.
Public methodToSearchDefinition
Constructs a search definition from the builder.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also