Interface LuceneAnalysisConfigurationContext
public interface LuceneAnalysisConfigurationContext
A context allowing the definition of named analyzers and normalizers in a Lucene backend.
-
Method Summary
Modifier and TypeMethodDescriptionStart a new analyzer definition.normalizer
(String name) Start a new normalizer definition.void
similarity
(Similarity similarity) Set theSimilarity
.
-
Method Details
-
analyzer
Start a new analyzer definition.- Parameters:
name
- The name used to reference this analyzer in Hibernate Search.- Returns:
- The initial step of a DSL where the analyzer can be defined.
-
normalizer
Start a new normalizer definition.- Parameters:
name
- The name used to reference this normalizer in Hibernate Search.- Returns:
- The initial step of a DSL where the normalizer can be defined.
-
similarity
Set theSimilarity
.Defaults to
BM25Similarity
.- Parameters:
similarity
- TheSimilarity
to use when indexing and when searching.
-
availableTokenizers
- Returns:
- A list of all possible values that can be passed to
LuceneAnalyzerTokenizerStep.tokenizer(String)
.
-
availableCharFilters
- Returns:
- A list of all possible values that can be passed to
LuceneAnalysisOptionalComponentsStep.charFilter(String)
.
-
availableTokenFilters
- Returns:
- A list of all possible values that can be passed to
LuceneAnalysisOptionalComponentsStep.tokenFilter(String)
.
-