Uses of Class
org.apache.lucene.analysis.custom.CustomAnalyzer.Builder
Package
Description
A general-purpose Analyzer that can be created with a builder-style API.
-
Uses of CustomAnalyzer.Builder in org.apache.lucene.analysis.custom
Modifier and TypeMethodDescriptionCustomAnalyzer.Builder.addCharFilter
(Class<? extends CharFilterFactory> factory, String... params) Adds the given char filter.CustomAnalyzer.Builder.addCharFilter
(Class<? extends CharFilterFactory> factory, Map<String, String> params) Adds the given char filter.CustomAnalyzer.Builder.addCharFilter
(String name, String... params) Adds the given char filter.CustomAnalyzer.Builder.addCharFilter
(String name, Map<String, String> params) Adds the given char filter.CustomAnalyzer.Builder.addTokenFilter
(Class<? extends TokenFilterFactory> factory, String... params) Adds the given token filter.CustomAnalyzer.Builder.addTokenFilter
(Class<? extends TokenFilterFactory> factory, Map<String, String> params) Adds the given token filter.CustomAnalyzer.Builder.addTokenFilter
(String name, String... params) Adds the given token filter.CustomAnalyzer.Builder.addTokenFilter
(String name, Map<String, String> params) Adds the given token filter.static CustomAnalyzer.Builder
CustomAnalyzer.builder()
Returns a builder for custom analyzers that loads all resources from Lucene's classloader.static CustomAnalyzer.Builder
Returns a builder for custom analyzers that loads all resources from the given file system base directory.static CustomAnalyzer.Builder
CustomAnalyzer.builder
(ResourceLoader loader) Returns a builder for custom analyzers that loads all resources using the givenResourceLoader
.CustomAnalyzer.ConditionBuilder.endwhen()
Close the branch and return to the main analysis chainCustomAnalyzer.Builder.withDefaultMatchVersion
(Version version) This match version is passed as default to all tokenizers or filters.CustomAnalyzer.Builder.withOffsetGap
(int offsetGap) Sets the offset gap of the analyzer.CustomAnalyzer.Builder.withPositionIncrementGap
(int posIncGap) Sets the position increment gap of the analyzer.CustomAnalyzer.Builder.withTokenizer
(Class<? extends TokenizerFactory> factory, String... params) Uses the given tokenizer.CustomAnalyzer.Builder.withTokenizer
(Class<? extends TokenizerFactory> factory, Map<String, String> params) Uses the given tokenizer.CustomAnalyzer.Builder.withTokenizer
(String name, String... params) Uses the given tokenizer.CustomAnalyzer.Builder.withTokenizer
(String name, Map<String, String> params) Uses the given tokenizer.