public class ElasticsearchAnalyzerDefinitionContextImpl extends Object implements ElasticsearchAnalyzerDefinitionContext, ElasticsearchAnalyzerDefinitionWithTokenizerContext, ElasticsearchAnalysisDefinitionRegistryPopulator
| Constructor and Description |
|---|
ElasticsearchAnalyzerDefinitionContextImpl(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
populate(ElasticsearchAnalysisDefinitionRegistry registry) |
ElasticsearchAnalyzerDefinitionWithTokenizerContext |
withCharFilters(String... names)
Set the char filters that the normalizer will use.
|
ElasticsearchAnalyzerDefinitionWithTokenizerContext |
withTokenFilters(String... names)
Set the token filters that the normalizer will use.
|
ElasticsearchAnalyzerDefinitionWithTokenizerContext |
withTokenizer(String name)
Set the tokenizer that the analyzer will use.
|
protected static final Log LOG
public ElasticsearchAnalyzerDefinitionContextImpl(String name)
public ElasticsearchAnalyzerDefinitionWithTokenizerContext withTokenizer(String name)
ElasticsearchAnalyzerDefinitionContextwithTokenizer in interface ElasticsearchAnalyzerDefinitionContextname - The name of the tokenizer.
There must be a corresponding tokenizer definition on the Elasticsearch server.
This can be achieved by defining the tokenizer
from Hibernate Search,
by configuring the Elasticsearch server directly, or by using built-in tokenizers.public ElasticsearchAnalyzerDefinitionWithTokenizerContext withCharFilters(String... names)
ElasticsearchCompositeAnalysisDefinitionContextwithCharFilters in interface ElasticsearchCompositeAnalysisDefinitionContextnames - The name of each char filters to use, in order.
There must be a corresponding char filter definition on the Elasticsearch server.
This can be achieved by defining the char filter
from Hibernate Search,
by configuring the Elasticsearch server directly, or by using built-in tokenizers.public ElasticsearchAnalyzerDefinitionWithTokenizerContext withTokenFilters(String... names)
ElasticsearchCompositeAnalysisDefinitionContextwithTokenFilters in interface ElasticsearchCompositeAnalysisDefinitionContextnames - The name of the token filters to use, in order.
There must be a corresponding token filter definition on the Elasticsearch server.
This can be achieved by defining the token filter
from Hibernate Search,
by configuring the Elasticsearch server, or by using built-in tokenizers.public void populate(ElasticsearchAnalysisDefinitionRegistry registry)
populate in interface ElasticsearchAnalysisDefinitionRegistryPopulatorCopyright © 2006–2017 Hibernate. All rights reserved.