protected SpellChecker createSpellChecker ( ) { // spell checker config SpellChecker spCheck = null ; if ( spellCheckerClass != null ) { try { spCheck = spellCheckerClass . newInstance ( ) ; spCheck . init ( SearchIndex . this , spellCheckerMinDistance , spellCheckerMorePopular ) ; } catch ( IOException e ) { log . warn ( "Exception initializing spell checker: " + spellCheckerClass , e ) ; } catch ( InstantiationException e ) { log . warn ( "Exception initializing spell checker: " + spellCheckerClass , e ) ; } catch ( IllegalAccessException e ) { log . warn ( "Exception initializing spell checker: " + spellCheckerClass , e ) ; } } return spCheck ; }
Creates a spell checker for this query handler .