Uses of Class
org.apache.lucene.analysis.custom.CustomAnalyzer.Builder
Packages that use 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
Methods in org.apache.lucene.analysis.custom that return CustomAnalyzer.BuilderModifier 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.BuilderCustomAnalyzer.builder()Returns a builder for custom analyzers that loads all resources from Lucene's classloader.static CustomAnalyzer.BuilderReturns a builder for custom analyzers that loads all resources from the given file system base directory.static CustomAnalyzer.BuilderCustomAnalyzer.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.