Table of Contents

Method First

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

First(SearchSpanDefinition<TDocument>, int)

Creates a span clause that matches near the beginning of the string.

public SearchSpanDefinition<TDocument> First(SearchSpanDefinition<TDocument> @operator, int endPositionLte)

Parameters

operator SearchSpanDefinition<TDocument>

The span operator.

endPositionLte int

The highest position in which to match the query.

Returns

SearchSpanDefinition<TDocument>

A first span clause.