MediaWiki:Cirrussearch-didyoumean-settings
#
# This message lets you configure the settings of the "Did you mean" suggestions. # See also https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html # Changes to this take effect immediately. # The syntax is as follows: # * Everything from a "#" character to the end of the line is a comment. # * Every non-blank line is the setting name followed by a ":" character followed by the setting value # The settings are : # * max_errors (integer): the maximum number of terms that will be considered misspelled in order to be corrected. 1 or 2. # * confidence (float): The confidence level defines a factor applied to the input phrases score which is used as a threshold for other suggestion candidates. Only candidates that score higher than the threshold will be included in the result. For instance a confidence level of 1.0 will only return suggestions that score higher than the input phrase. If set to 0.0 the best candidate are returned. # * min_doc_freq (float 0 to 1): The minimal threshold in number of documents a suggestion should appear in. # High frequency terms are generally "stop words". # * max_term_freq (float 0 to 1): The maximum threshold in number of documents in which a term can exist in order to be included. # * prefix_length (integer): The minimal number of prefix characters that must match a term in order to be a suggestion. # * suggest_mode (missing, popular, always): The suggest mode controls the way suggestions are included. # Examples of good lines: # max_errors:2 # confidence:2.0 # max_term_freq:0.5 # min_doc_freq:0.01 # prefix_length:2 # suggest_mode:always # #