Class SpellCheckDecisionManager
- java.lang.Object
-
- org.alfresco.repo.search.impl.solr.SpellCheckDecisionManager
-
public class SpellCheckDecisionManager extends Object
1. If the actual query contains one or more misspelled terms which leads to no hits, and if a suggestion is available, the spellcheck manager, auto-executes the suggested term in the background and returns: Searched for London instead of Lndon. 2. If the actual query contains a rare term resulting in a few hits and suggestions are available and have more hits, the manager returns “didYouMean”… 3. If the actual query contains a correctly spelled term, but also suggestions are available and they have a fewer or equal hits as the actual query term. In this case, the manager just returns the Solr response.- Since:
- 5.0
- Author:
- Jamal Kaabi-Mofrad
-
-
Constructor Summary
Constructors Constructor Description SpellCheckDecisionManager(org.json.JSONObject resultJson, String origURL, org.json.JSONObject reguestJsonBody, String spellCheckParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.json.JSONObjectgetSpellCheckJsonValue()StringgetUrl()booleanisCollate()
-
-
-
Method Detail
-
isCollate
public boolean isCollate()
- Returns:
- the collate
-
getUrl
public String getUrl()
- Returns:
- the url
-
getSpellCheckJsonValue
public org.json.JSONObject getSpellCheckJsonValue()
- Returns:
- the spellCheckJsonValue
-
-