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

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

Introduction

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

Prototype

String SPELLCHECK_COLLATE_EXTENDED_RESULTS

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

Click Source Link

Document

Whether to use the Extended Results Format for collations.

Usage

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

License:Apache License

/**
 * Instructs Solr to return an expanded response format detailing the collations found.
 *
 * @return/*from  w w w.  j  ava2  s. c  o m*/
 */
public SpellcheckOptions collateExtendedResults() {
    return potentiallySetCollate().createNewAndAppend(SpellingParams.SPELLCHECK_COLLATE_EXTENDED_RESULTS, true);
}

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

License:Apache License

/**
 * @return/*from w w w.j a  v  a  2 s. c om*/
 */
public boolean getCollateExtendedResults() {
    return params.containsKey(SpellingParams.SPELLCHECK_COLLATE_EXTENDED_RESULTS)
            ? (Boolean) params.get(SpellingParams.SPELLCHECK_COLLATE_EXTENDED_RESULTS)
            : false;
}