Class AlfrescoSpellCheckCollator
java.lang.Object
org.alfresco.solr.component.spellcheck.AlfrescoSpellCheckCollator
Disclaimer: The code copied from
SpellCheckCollator but only modified the
SpellCheckCollator.collate(SpellingResult, String, ResponseBuilder)
method to pass the suggested term to the original alfresco JSON request rather
than via 'q' parameter.- Since:
- 5.0
- Author:
- Jamal Kaabi-Mofrad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollate(org.apache.solr.spelling.SpellingResult result, String originalQuery, org.apache.solr.handler.component.ResponseBuilder ultimateResponse) setDocCollectionLimit(int docCollectionLimit) setMaxCollationEvaluations(int maxCollationEvaluations) setMaxCollations(int maxCollations) setMaxCollationTries(int maxCollationTries) setSuggestionsMayOverlap(boolean suggestionsMayOverlap)
-
Constructor Details
-
AlfrescoSpellCheckCollator
public AlfrescoSpellCheckCollator()
-
-
Method Details
-
collate
public List<AlfrescoSpellCheckCollation> collate(org.apache.solr.spelling.SpellingResult result, String originalQuery, org.apache.solr.handler.component.ResponseBuilder ultimateResponse) -
setMaxCollations
-
setMaxCollationTries
-
setMaxCollationEvaluations
-
setSuggestionsMayOverlap
-
setDocCollectionLimit
-