Control Coverage Settings
Coverage detects whole or split words, prefixes, suffixes and near-exact hits with minor typos. It returns an index number to truncate the result list.
Coverage has default values for all properties, with most functions enabled. In this example we turn off prefix, suffix, and fuzzy words — a mode to only look for whole words with a sharp cutoff.
CoverageSetup cov = new CoverageSetup();
// Disable functions
cov.CoverFuzzyWords = false;
cov.CoverPrefixSuffix = false;
cov.CoverWholeQuery = false;
// Enable functions and set word size
cov.CoverJoinedWords = true;
cov.CoverWholeWords = true;
cov.MinWordSize = 3;
// Pass the settings to the query
query.CoverageSetup = cov;