Package org.apache.solr.analysis

Examples of org.apache.solr.analysis.TokenizerChain


      filters[index].init( getMapOfParameters( filterDef.params() ) );
      if ( filters[index] instanceof ResourceLoaderAware ) {
        ((ResourceLoaderAware)filters[index]).inform( resourceLoader );
      }
    }
    return new TokenizerChain(tokenFactory, filters);
  }
View Full Code Here


  private Dictionary getDictionaryByFieldType(String fieldTypeName) {
    FieldType ft = h.getCore().getLatestSchema().getFieldTypeByName(fieldTypeName);
    Analyzer a = ft.getAnalyzer();
    Assert.assertEquals(a.getClass(), TokenizerChain.class);
   
    TokenizerChain tc = (TokenizerChain) a;
    TokenizerFactory tf = tc.getTokenizerFactory();
    Assert.assertEquals(tf.getClass(), MMSegTokenizerFactory.class);
   
    MMSegTokenizerFactory mtf = (MMSegTokenizerFactory) tf;
   
    Assert.assertNotNull(mtf.dic);
View Full Code Here

      charFilters[index].init( getMapOfParameters( charFilterDef.params(), luceneMatchVersion ) );
      if ( charFilters[index] instanceof ResourceLoaderAware ) {
        ( ( ResourceLoaderAware ) charFilters[index] ).inform( resourceLoader );
      }
    }
    return new TokenizerChain( charFilters, tokenFactory, filters );
  }
View Full Code Here

TOP

Related Classes of org.apache.solr.analysis.TokenizerChain

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.