Examples of analyzerDef()


Examples of org.hibernate.search.cfg.SearchMapping.analyzerDef()

  public static class MappingFactory {
    @Factory
    public SearchMapping build() {
      SearchMapping mapping = new SearchMapping();
      mapping
          .analyzerDef( "stemmer", StandardTokenizerFactory.class )
          .filter( StandardFilterFactory.class )
          .filter( LowerCaseFilterFactory.class )
          .filter( StopFilterFactory.class )
          .filter( SnowballPorterFilterFactory.class )
View Full Code Here

Examples of org.hibernate.search.cfg.SearchMapping.analyzerDef()

  }

  @Factory
  public SearchMapping build() {
    SearchMapping mapping = new SearchMapping();
    mapping
        .analyzerDef( "ngram", StandardTokenizerFactory.class )
        .filter( LowerCaseFilterFactory.class )
        .filter( StopFilterFactory.class )
        .param( "words", "non-existent-resourcename.file" );
    return mapping;
View Full Code Here

Examples of org.hibernate.search.cfg.SearchMapping.analyzerDef()

  }

  private SearchMapping createSearchMapping() {
    SearchMapping mapping = new SearchMapping();

    mapping.analyzerDef( "english", StandardTokenizerFactory.class )
        .filter( LowerCaseFilterFactory.class )
        .filter( SnowballPorterFilterFactory.class )
        .analyzerDef(
            "english", StandardTokenizerFactory.class
        ) // ups duplicate name here - this should throw an exception
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.