NEST by Elastic and contributors

<PackageReference Include="NEST" Version="7.4.2" />

.NET API 4,316,160 bytes

 IIntervalsAllOf

public interface IIntervalsAllOf : IIntervals
A rule that returns matches that span a combination of other rules.

An array of rules to combine. All rules must produce a match in a document for the overall source to match.

int? MaxGaps { get; set; }

Specify a maximum number of gaps between the terms in the text. Terms that appear further apart than this will not match. If unspecified, or set to -1, then there is no width restriction on the match. If set to 0 then the terms must appear next to each other.

bool? Ordered { get; set; }

Whether or not the terms must appear in their specified order. Defaults to false