Table of Contents

Method Span

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

Span(SearchSpanDefinition<TDocument>)

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

public SearchDefinition<TDocument> Span(SearchSpanDefinition<TDocument> clause)

Parameters

clause SearchSpanDefinition<TDocument>

The span clause.

Returns

SearchDefinition<TDocument>

A span search definition.