Class AlfrescoSpellCheckComponent
- java.lang.Object
-
- org.apache.solr.handler.component.SearchComponent
-
- org.apache.solr.handler.component.SpellCheckComponent
-
- org.alfresco.solr.component.spellcheck.AlfrescoSpellCheckComponent
-
- All Implemented Interfaces:
org.apache.solr.common.params.SpellingParams,org.apache.solr.core.SolrInfoMBean,org.apache.solr.util.plugin.NamedListInitializedPlugin,org.apache.solr.util.plugin.SolrCoreAware
public class AlfrescoSpellCheckComponent extends org.apache.solr.handler.component.SpellCheckComponent- Since:
- 5.0
- Author:
- Jamal Kaabi-Mofrad
-
-
Field Summary
-
Fields inherited from class org.apache.solr.handler.component.SpellCheckComponent
COMPONENT_NAME, DEFAULT_ONLY_MORE_POPULAR, initParams, queryConverter, spellCheckers
-
Fields inherited from interface org.apache.solr.common.params.SpellingParams
SPELLCHECK_ACCURACY, SPELLCHECK_ALTERNATIVE_TERM_COUNT, SPELLCHECK_BUILD, SPELLCHECK_COLLATE, SPELLCHECK_COLLATE_EXTENDED_RESULTS, SPELLCHECK_COLLATE_MAX_COLLECT_DOCS, SPELLCHECK_COLLATE_PARAM_OVERRIDE, SPELLCHECK_COUNT, SPELLCHECK_DICT, SPELLCHECK_EXTENDED_RESULTS, SPELLCHECK_MAX_COLLATION_EVALUATIONS, SPELLCHECK_MAX_COLLATION_TRIES, SPELLCHECK_MAX_COLLATIONS, SPELLCHECK_MAX_RESULTS_FOR_SUGGEST, SPELLCHECK_MAX_RESULTS_FOR_SUGGEST_FQ, SPELLCHECK_ONLY_MORE_POPULAR, SPELLCHECK_PREFIX, SPELLCHECK_Q, SPELLCHECK_RELOAD
-
-
Constructor Summary
Constructors Constructor Description AlfrescoSpellCheckComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCollationsToResponse(org.apache.solr.common.params.SolrParams params, org.apache.solr.spelling.SpellingResult spellingResult, org.apache.solr.handler.component.ResponseBuilder rb, java.lang.String q, org.apache.solr.common.util.NamedList response, boolean suggestionsMayOverlap)Disclaimer: The code copied from the super class (SpellCheckComponent) but only replaced the collator with the AlfrescoSpellCheckCollator-
Methods inherited from class org.apache.solr.handler.component.SpellCheckComponent
finishStage, getCategory, getCustomParams, getDescription, getSpellChecker, getSpellChecker, getSpellCheckers, inform, init, modifyRequest, prepare, process, toNamedList
-
-
-
-
Method Detail
-
addCollationsToResponse
protected void addCollationsToResponse(org.apache.solr.common.params.SolrParams params, org.apache.solr.spelling.SpellingResult spellingResult, org.apache.solr.handler.component.ResponseBuilder rb, java.lang.String q, org.apache.solr.common.util.NamedList response, boolean suggestionsMayOverlap)Disclaimer: The code copied from the super class (SpellCheckComponent) but only replaced the collator with the AlfrescoSpellCheckCollator- Overrides:
addCollationsToResponsein classorg.apache.solr.handler.component.SpellCheckComponent
-
-