Click or drag to resize

SearchDefinitionBuilderTDocumentSpan Method

Creates a search definition that finds text search matches within regions of a text field.

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public SearchDefinition<TDocument> Span(
	SearchSpanDefinition<TDocument> clause
)

Parameters

clause
Type: MongoDB.Driver.SearchSearchSpanDefinitionTDocument
The span clause.

Return Value

Type: SearchDefinitionTDocument
A span search definition.
See Also