Click or drag to resize

SearchSpanDefinitionBuilderTDocumentSubtract Method

Creates a span clause that excludes certain strings from the search results.

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public SearchSpanDefinition<TDocument> Subtract(
	SearchSpanDefinition<TDocument> include,
	SearchSpanDefinition<TDocument> exclude
)

Parameters

include
Type: MongoDB.Driver.SearchSearchSpanDefinitionTDocument
Clause to be included.
exclude
Type: MongoDB.Driver.SearchSearchSpanDefinitionTDocument
Clause to be excluded.

Return Value

Type: SearchSpanDefinitionTDocument
A subtract span clause.
See Also