All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.elasticsearch.analyzer.definition.ElasticsearchAnalysisDefinitionRegistryBuilder Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * Hibernate Search, full-text search for your domain model
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.search.elasticsearch.analyzer.definition;

/**
 * A builder for Elasticsearch analysis-related definitions: analyzers, tokenizers, char filters, ...
 * 

* This contract only expects users to provide the definitions; * the registry building is handled by Hibernate Search. * * @author Yoann Rodiere */ public interface ElasticsearchAnalysisDefinitionRegistryBuilder { /** * Start an analyzer definition. * @param name The name used to reference this analyzer (both in Elasticsearch and in Hibernate Search). * @return The analyzer definition context, allowing to define the analyzer's components (tokenizer, ...). */ ElasticsearchAnalyzerDefinitionContext analyzer(String name); /** * Start a normalizer definition. * @param name The name used to reference this normalizer (both in Elasticsearch and in Hibernate Search). * @return The normalizer definition context, allowing to define the normalizer's components (token filters, ...). */ ElasticsearchNormalizerDefinitionContext normalizer(String name); /** * Start a tokenizer definition. * @param name The name used to reference this tokenizer * {@link ElasticsearchAnalyzerDefinitionContext#withTokenizer(String) in analyzer definitions}. * @return The tokenizer definition context, allowing to define the tokenizer's type and parameters. */ ElasticsearchAnalysisComponentDefinitionContext tokenizer(String name); /** * Start a char filter definition. * @param name The name used to reference this char filter * {@link ElasticsearchCompositeAnalysisDefinitionContext#withCharFilters(String...) in analyzer or normalizer definitions}. * @return The char filter definition context, allowing to define the char filter's type and parameters. */ ElasticsearchAnalysisComponentDefinitionContext charFilter(String name); /** * Start a token filter definition. * @param name The name used to reference this token filter * {@link ElasticsearchCompositeAnalysisDefinitionContext#withTokenFilters(String...) in analyzer or normalizer definitions}. * @return The token filter definition context, allowing to define the token filter's type and parameters. */ ElasticsearchAnalysisComponentDefinitionContext tokenFilter(String name); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy