IFulltextQueryOptionsTDocument Interface

Provides methods to set the options for a query.

Definition

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public interface IFulltextQueryOptions<TDocument>

Type Parameters

TDocument
The type of document to set options for.

Methods

BooleanSimplify Sets a value whether to simplify boolean expressions in a query. Supported with Sphinx 2.1.1 and up.
Comment Sets a comment the for the query.
CutOff Sets a threshold on how many found matches to process.
FieldWeight(String, Int32) Sets a weight for the field with the given name.
FieldWeightTField(ExpressionFuncTDocument, TField, Int32) Sets a weight for the selected field.
Idf Determines the way the IDF (Inverse Document Frequency) is calculated. Supported with Sphinx 2.1.1 and up.
IgnoreNonexistentIndexes Sets a value whether to ignore non-existent indexes for the query. Supported with Sphinx 2.1.1 and up.
IndexWeight Sets a weight for the index with the given name.
MaxMatches Sets the maximum number of matches for a query.
MaxPredictedQueryTime Sets the maximum predicted time for a query. Supported with Sphinx 2.1.1 and up.
MaxQueryTime Set the maximum execution time for a query.
RandSeed Sets a specific seed value for an OrderBy(x => Function.Rand()) query.
Ranker(SphinxRankMode) Sets the ranker to use for this query.
Ranker(SphinxRankMode, String) Sets the ranker to use for this query.
RankFields Sets the fields that are processed when computing ranking factors. Supported with Sphinx 3.1.1
RetryCount The number of retries for a distributed query.
RetryDelay The delay between retries for a distributed query.
ReverseScan Sets a value whether to use a reverse scan for a full-scan query.
Set Sets the option with the given name to the given value. Use this in case a new option has been added to Sphinx, but is not yet supported by the fluent API.
SortMethod Sets the sort method for the query. Supported with Sphinx 2.1.1 and up.
TfIdf Determines the way the tf-idf (Term Frequency–Inverse Document Frequency) is calculated. Supported with Sphinx 2.2.1 and up.
Threads Sets how many threads a query can use. Supported with Manticore 3.5.2 and up.
UseGlobalIdf Sets a value indicating whether to use global statistics (frequencies) from the global_idf file for IDF computations, rather than the local index statistics. Supported with Sphinx 2.1.1 and up.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also