Class SpellCheckDecisionManager


  • public class SpellCheckDecisionManager
    extends java.lang.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, java.lang.String origURL, org.json.JSONObject reguestJsonBody, java.lang.String spellCheckParams)  
    • Constructor Detail

      • SpellCheckDecisionManager

        public SpellCheckDecisionManager​(org.json.JSONObject resultJson,
                                         java.lang.String origURL,
                                         org.json.JSONObject reguestJsonBody,
                                         java.lang.String spellCheckParams)
    • Method Detail

      • isCollate

        public boolean isCollate()
        Returns:
        the collate
      • getUrl

        public java.lang.String getUrl()
        Returns:
        the url
      • getSpellCheckJsonValue

        public org.json.JSONObject getSpellCheckJsonValue()
        Returns:
        the spellCheckJsonValue