Table of Contents

Method Subtract

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

Subtract(SearchSpanDefinition<TDocument>, SearchSpanDefinition<TDocument>)

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

public SearchSpanDefinition<TDocument> Subtract(SearchSpanDefinition<TDocument> include, SearchSpanDefinition<TDocument> exclude)

Parameters

include SearchSpanDefinition<TDocument>

Clause to be included.

exclude SearchSpanDefinition<TDocument>

Clause to be excluded.

Returns

SearchSpanDefinition<TDocument>

A subtract span clause.