Click or drag to resize

SearchDefinitionBuilderTDocument Class

A builder for a search definition.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.SearchSearchDefinitionBuilderTDocument

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public sealed class SearchDefinitionBuilder<TDocument>

Type Parameters

TDocument
The type of the document.

The SearchDefinitionBuilderTDocument type exposes the following members.

Constructors
  NameDescription
Public methodSearchDefinitionBuilderTDocument
Initializes a new instance of the SearchDefinitionBuilderTDocument class
Top
Methods
  NameDescription
Public methodAutocomplete(SearchPathDefinitionTDocument, SearchQueryDefinition, SearchAutocompleteTokenOrder, SearchFuzzyOptions, SearchScoreDefinitionTDocument)
Creates a search definition that performs a search for a word or phrase that contains a sequence of characters from an incomplete input string.
Public methodAutocompleteTField(ExpressionFuncTDocument, TField, SearchQueryDefinition, SearchAutocompleteTokenOrder, SearchFuzzyOptions, SearchScoreDefinitionTDocument)
Creates a search definition that performs a search for a word or phrase that contains a sequence of characters from an incomplete search string.
Public methodCompound
Creates a builder for a compound search definition.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEqualsTField(ExpressionFuncTDocument, TField, TField, SearchScoreDefinitionTDocument)
Creates a search definition that queries for documents where an indexed field is equal to the specified value. Supported value types are boolean, numeric, ObjectId and date.
Public methodEqualsTField(FieldDefinitionTDocument, TField, TField, SearchScoreDefinitionTDocument)
Creates a search definition that queries for documents where an indexed field is equal to the specified value. Supported value types are boolean, numeric, ObjectId and date.
Public methodExists(FieldDefinitionTDocument)
Creates a search definition that tests if a path to a specified indexed field name exists in a document.
Public methodExistsTField(ExpressionFuncTDocument, TField)
Creates a search definition that tests if a path to a specified indexed field name exists in a document.
Public methodFacet(SearchDefinitionTDocument, SearchFacetTDocument)
Creates a search definition that groups results by values or ranges in the specified faceted fields and returns the count for each of those groups.
Public methodFacet(SearchDefinitionTDocument, IEnumerableSearchFacetTDocument)
Creates a search definition that groups results by values or ranges in the specified faceted fields and returns the count for each of those groups.
Public methodGeoShapeTCoordinates(SearchPathDefinitionTDocument, GeoShapeRelation, GeoJsonGeometryTCoordinates, SearchScoreDefinitionTDocument)
Creates a search definition that queries for shapes with a given geometry.
Public methodGeoShapeTCoordinates, TField(ExpressionFuncTDocument, TField, GeoShapeRelation, GeoJsonGeometryTCoordinates, SearchScoreDefinitionTDocument)
Creates a search definition that queries for shapes with a given geometry.
Public methodGeoWithinTCoordinates(SearchPathDefinitionTDocument, GeoJsonGeometryTCoordinates, SearchScoreDefinitionTDocument)
Creates a search definition that queries for geographic points within a given geometry.
Public methodGeoWithinTCoordinates(SearchPathDefinitionTDocument, GeoWithinAreaTCoordinates, SearchScoreDefinitionTDocument)
Creates a search definition that queries for geographic points within a given geo object.
Public methodGeoWithinTCoordinates, TField(ExpressionFuncTDocument, TField, GeoJsonGeometryTCoordinates, SearchScoreDefinitionTDocument)
Creates a search definition that queries for geographic points within a given geometry.
Public methodGeoWithinTCoordinates, TField(ExpressionFuncTDocument, TField, GeoWithinAreaTCoordinates, SearchScoreDefinitionTDocument)
Creates a search definition that queries for geographic points within a given geo object.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMoreLikeThisTLike(IEnumerableTLike)
Creates a search definition that returns documents similar to the input documents.
Public methodMoreLikeThisTLike(TLike)
Creates a search definition that returns documents similar to the input documents.
Public methodNear(SearchPathDefinitionTDocument, DateTime, Int64, SearchScoreDefinitionTDocument)
Creates a search definition that supports querying and scoring numeric and date values.
Public methodNear(SearchPathDefinitionTDocument, Double, Double, SearchScoreDefinitionTDocument)
Creates a search definition that supports querying and scoring numeric and date values.
Public methodNear(SearchPathDefinitionTDocument, Int32, Int32, SearchScoreDefinitionTDocument)
Creates a search definition that supports querying and scoring numeric and date values.
Public methodNear(SearchPathDefinitionTDocument, Int64, Int64, SearchScoreDefinitionTDocument)
Creates a search definition that supports querying and scoring numeric and date values.
Public methodNearTField(ExpressionFuncTDocument, TField, DateTime, Int64, SearchScoreDefinitionTDocument)
Creates a search definition that supports querying and scoring numeric and date values.
Public methodNearTField(ExpressionFuncTDocument, TField, Double, Double, SearchScoreDefinitionTDocument)
Creates a search definition that supports querying and scoring numeric and date values.
Public methodNearTField(ExpressionFuncTDocument, TField, Int32, Int32, SearchScoreDefinitionTDocument)
Creates a search definition that supports querying and scoring numeric and date values.
Public methodNearTField(ExpressionFuncTDocument, TField, Int64, Int64, SearchScoreDefinitionTDocument)
Creates a search definition that supports querying and scoring numeric and date values.
Public methodNearTCoordinates(SearchPathDefinitionTDocument, GeoJsonPointTCoordinates, Double, SearchScoreDefinitionTDocument)
Creates a search definition that supports querying and scoring numeric and date values.
Public methodNearTCoordinates, TField(ExpressionFuncTDocument, TField, GeoJsonPointTCoordinates, Double, SearchScoreDefinitionTDocument)
Creates a search definition that supports querying and scoring numeric and date values.
Public methodPhrase(SearchPathDefinitionTDocument, SearchQueryDefinition, NullableInt32, SearchScoreDefinitionTDocument)
Creates a search definition that performs search for documents containing an ordered sequence of terms.
Public methodPhraseTField(ExpressionFuncTDocument, TField, SearchQueryDefinition, NullableInt32, SearchScoreDefinitionTDocument)
Creates a search definition that performs search for documents containing an ordered sequence of terms.
Public methodQueryString(FieldDefinitionTDocument, String, SearchScoreDefinitionTDocument)
Creates a search definition that queries a combination of indexed fields and values.
Public methodQueryStringTField(ExpressionFuncTDocument, TField, String, SearchScoreDefinitionTDocument)
Creates a search definition that queries a combination of indexed fields and values.
Public methodRangeTField(ExpressionFuncTDocument, TField, SearchRangeTField, SearchScoreDefinitionTDocument)
Creates a search definition that queries for documents where a field is in the specified range.
Public methodRangeTField(SearchPathDefinitionTDocument, SearchRangeTField, SearchScoreDefinitionTDocument)
Creates a search definition that queries for documents where a field is in the specified range.
Public methodRegex(SearchPathDefinitionTDocument, SearchQueryDefinition, Boolean, SearchScoreDefinitionTDocument)
Creates a search definition that interprets the query as a regular expression.
Public methodRegexTField(ExpressionFuncTDocument, TField, SearchQueryDefinition, Boolean, SearchScoreDefinitionTDocument)
Creates a search definition that interprets the query as a regular expression.
Public methodSpan
Creates a search definition that finds text search matches within regions of a text field.
Public methodText(SearchPathDefinitionTDocument, SearchQueryDefinition, SearchFuzzyOptions, SearchScoreDefinitionTDocument)
Creates a search definition that performs full-text search using the analyzer specified in the index configuration.
Public methodTextTField(ExpressionFuncTDocument, TField, SearchQueryDefinition, SearchFuzzyOptions, SearchScoreDefinitionTDocument)
Creates a search definition that performs full-text search using the analyzer specified in the index configuration.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWildcard(SearchPathDefinitionTDocument, SearchQueryDefinition, Boolean, SearchScoreDefinitionTDocument)
Creates a search definition that uses special characters in the search string that can match any character.
Public methodWildcardTField(ExpressionFuncTDocument, TField, SearchQueryDefinition, Boolean, SearchScoreDefinitionTDocument)
Creates a search definition that uses special characters in the search string that can match any character.
Top
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