public class ElasticsearchAnalyzerDefinitionContextImpl extends Object implements ElasticsearchAnalyzerDefinitionContext, ElasticsearchAnalyzerDefinitionWithTokenizerContext
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 analyzer will use.
|
ElasticsearchAnalyzerDefinitionWithTokenizerContext |
withTokenFilters(String... names)
Set the token filters that the analyzer 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)
ElasticsearchAnalyzerDefinitionContext
withTokenizer
in interface ElasticsearchAnalyzerDefinitionContext
name
- 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)
ElasticsearchAnalyzerDefinitionWithTokenizerContext
withCharFilters
in interface ElasticsearchAnalyzerDefinitionWithTokenizerContext
names
- 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)
ElasticsearchAnalyzerDefinitionWithTokenizerContext
withTokenFilters
in interface ElasticsearchAnalyzerDefinitionWithTokenizerContext
names
- 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)
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved