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

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

Introduction

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

Prototype

String SPELLCHECK_MAX_COLLATIONS

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

Click Source Link

Document

The maximum number of collations to return.

Usage

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

License:Apache License

/**
 * The maximum number of collations to return.
 *
 * @param max//  w  ww.j a  va 2  s . co m
 * @return
 */
public SpellcheckOptions maxCollations(long max) {
    return potentiallySetCollate().createNewAndAppend(SpellingParams.SPELLCHECK_MAX_COLLATIONS, max);
}

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

License:Apache License

/**
 * @return can be {@literal null}.
 */
@Nullable
public Long getMaxCollations() {
    return (Long) params.get(SpellingParams.SPELLCHECK_MAX_COLLATIONS);
}