Package org.exoplatform.services.jcr.impl.core.query.lucene

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.SpellChecker


    *
    * @return the spell checker or <code>null</code> if none is configured or an error occurs.
    */
   public SpellChecker createSpellChecker(QueryHandler handler)
   {
      SpellChecker spCheck = null;
      if (getSpellCheckerClass() != null)
      {
         try
         {
            Class spellCheckerClass = Class.forName(getSpellCheckerClass(), true, this.getClass().getClassLoader());
            spCheck = (SpellChecker)spellCheckerClass.newInstance();
            spCheck.init(handler);
         }
         catch (Exception e)
         {
            log.warn("Exception initializing spell checker: " + getSpellCheckerClass(), e);
         }
View Full Code Here


     *
     * @return the spell checker or <code>null</code> if none is configured or
     *         an error occurs.
     */
    public SpellChecker createSpellChecker(QueryHandler handler) {
  SpellChecker spCheck = null;
  if (getSpellCheckerClass() != null) {
      try {
    Class spellCheckerClass = Class.forName(getSpellCheckerClass(),
      true, this.getClass().getClassLoader());
    spCheck = (SpellChecker) spellCheckerClass.newInstance();
    spCheck.init(handler);
      } catch (Exception e) {
    log.warn("Exception initializing spell checker: "
      + getSpellCheckerClass(), e);
      }
  }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.core.query.lucene.SpellChecker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.