Annotation Interface Spellcheck
Enable Solr spellcheck component for a repository query method.
Use
Use
SpellcheckedPage as method return to access suggestions.- Since:
- 2.1
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionfloatSpecifies an accuracy value to be used by the spell checking implementation to decide whether a result is worthwhile or not.longThe count of suggestions to return for each query term existing in the index and/or dictionary.booleanIf set, Solr creates the dictionary that the SolrSpellChecker will use for spell-checking.booleanIf set, Solr will take the best suggestion for each token (if one exists) and construct a new query from the suggestions.booleanInstructs Solr to return an expanded response format detailing the collations found.longSpecifies the maximum number of spelling suggestions to be returned.String[]This parameter causes Solr to use the dictionary named in the parameter's argument.booleanThis parameter enables/disables the extended response format.longThis parameter specifies the maximum number of documents that should be collect when testing potential collations against the index.longThis parameter specifies the maximum number of word correction combinations to rank and evaluate prior to deciding which collation candidates to test against the index.longThe maximum number of collations to return.longThis parameter specifies the number of collation possibilities for Solr to try before giving up.longThe maximum number of hits the request can return in order to both generate spelling suggestions and set the correctlySpelled element to false.booleanLimits spellcheck responses to queries that are more popular than the original query.
-
Element Details
-
count
long countSpecifies the maximum number of spelling suggestions to be returned.- Returns:
- Default:
- -1L
-
dictionaries
String[] dictionariesThis 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.- Returns:
- Default:
- {}
-
extendedResults
boolean extendedResultsThis parameter enables/disables the extended response format. The default values is false. If enabled the response returns the document frequency for each suggestion and returns one suggestion block for each term in the query string.- Returns:
- Default:
- false
-
maxResultsForSuggest
long maxResultsForSuggestThe maximum number of hits the request can return in order to both generate spelling suggestions and set the correctlySpelled element to false.- Returns:
- Default:
- -1L
-
alternativeTermCount
long alternativeTermCountThe count of suggestions to return for each query term existing in the index and/or dictionary.- Returns:
- Default:
- -1L
-
accuracy
float accuracySpecifies an accuracy value to be used by the spell checking implementation to decide whether a result is worthwhile or not. The value is a float between 0 and 1.- Returns:
- Default:
- -1.0f
-
onlyMorePopular
boolean onlyMorePopularLimits spellcheck responses to queries that are more popular than the original query.- Returns:
- Default:
- false
-
buildDictionary
boolean buildDictionaryIf set, Solr creates the dictionary that the SolrSpellChecker will use for spell-checking.- Returns:
- Default:
- false
-
collate
boolean collateIf set, Solr will take the best suggestion for each token (if one exists) and construct a new query from the suggestions.- Returns:
- Default:
- false
-
maxCollations
long maxCollationsThe maximum number of collations to return.- Returns:
- Default:
- -1L
-
maxCollationsTries
long maxCollationsTriesThis parameter specifies the number of collation possibilities for Solr to try before giving up.- Returns:
- Default:
- -1L
-
maxCollationEvaluations
long maxCollationEvaluationsThis parameter specifies the maximum number of word correction combinations to rank and evaluate prior to deciding which collation candidates to test against the index.- Returns:
- Default:
- -1L
-
maxCollationCollectDocs
long maxCollationCollectDocsThis parameter specifies the maximum number of documents that should be collect when testing potential collations against the index.- Returns:
- Default:
- -1L
-
collateExtendedResults
boolean collateExtendedResultsInstructs Solr to return an expanded response format detailing the collations found.- Returns:
- Default:
- false
-