NEST by Elastic and contributors

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

.NET API 4,424,192 bytes

 IPhraseSuggestCollate

public interface IPhraseSuggestCollate
Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index.
IDictionary<string, object> Params { get; set; }

The parameters for the query. the suggestion value will be added to the variables you specify.

bool? Prune { get; set; }

Controls if all phrase suggestions will be returned. When set to true, the suggestions will have an additional option collate_match, which will be true if matching documents for the phrase was found, false otherwise. The default value for Prune is false.

The collate query to run.