Example usage for org.apache.solr.common.params SpellingParams SPELLCHECK_DICT

List of usage examples for org.apache.solr.common.params SpellingParams SPELLCHECK_DICT

Introduction

In this page you can find the example usage for org.apache.solr.common.params SpellingParams SPELLCHECK_DICT.

Prototype

String SPELLCHECK_DICT

To view the source code for org.apache.solr.common.params SpellingParams SPELLCHECK_DICT.

Click Source Link

Document

The name of the dictionary to be used for giving the suggestion for a request.

Usage

From source file:org.springframework.data.solr.core.query.SpellcheckOptions.java

License:Apache License

/**
 * This parameter causes Solr to use the dictionary named in the parameter's argument. The default setting is
 * "default". This parameter can be used to invoke a specific spellchecker on a per request basis.
 *
 * @return/*from  w ww. j av  a  2s  .c om*/
 */
public SpellcheckOptions dictionaries(String... names) {
    return createNewAndAppend(SpellingParams.SPELLCHECK_DICT, names);
}

From source file:org.springframework.data.solr.core.query.SpellcheckOptions.java

License:Apache License

/**
 * @return can be {@literal null}.
 */
@Nullable
public String[] getDictionary() {
    return (String[]) params.get(SpellingParams.SPELLCHECK_DICT);
}