Package org.apache.lucene.facet.index.streaming

Examples of org.apache.lucene.facet.index.streaming.CategoryListTokenizer


    return super.getParentsStream(categoryAttributesStream);
  }

  @Override
  protected CategoryListTokenizer getCategoryListTokenizer(TokenStream categoryStream) {
    CategoryListTokenizer tokenizer = super.getCategoryListTokenizer(categoryStream);
    // Add tokenizer for each enhancement that produces category list
    for (CategoryEnhancement enhancement : ((EnhancementsIndexingParams) indexingParams)
        .getCategoryEnhancements()) {
      if (enhancement.generatesCategoryList()) {
        tokenizer = enhancement.getCategoryListTokenizer(tokenizer,
View Full Code Here


      // Set a suitable {@link TokenStream} using
      // CategoryParentsStream, followed by CategoryListTokenizer and
      // CategoryTokenizer composition (the ordering of the last two is
      // not mandatory).
      CategoryParentsStream parentsStream = (CategoryParentsStream) getParentsStream(categoryAttributesStream);
      CategoryListTokenizer categoryListTokenizer = getCategoryListTokenizer(parentsStream);
      CategoryTokenizer stream = getCategoryTokenizer(categoryListTokenizer);

      // Finally creating a suitable field with stream and adding it to a
      // master field-list, used during the build process (see
      // super.build())
View Full Code Here

      // Set a suitable {@link TokenStream} using
      // CategoryParentsStream, followed by CategoryListTokenizer and
      // CategoryTokenizer composition (the ordering of the last two is
      // not mandatory).
      CategoryParentsStream parentsStream = (CategoryParentsStream) getParentsStream(categoryAttributesStream);
      CategoryListTokenizer categoryListTokenizer = getCategoryListTokenizer(parentsStream);
      CategoryTokenizer stream = getCategoryTokenizer(categoryListTokenizer);

      // Finally creating a suitable field with stream and adding it to a
      // master field-list, used during the build process (see
      // super.build())
View Full Code Here

TOP

Related Classes of org.apache.lucene.facet.index.streaming.CategoryListTokenizer

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.