# Uses of Class
org.apache.lucene.analysis.custom.CustomAnalyzer.Builder

Packages that use CustomAnalyzer.Builder
Package
Description
org.apache.lucene.analysis.custom
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.Builder
Modifier and Type
Method
Description
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`addCharFilter(Class<? extends CharFilterFactory> factory, String... params)`
Adds the given char filter.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`addCharFilter(Class<? extends CharFilterFactory> factory, Map<String,String> params)`
Adds the given char filter.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`addCharFilter(String name, String... params)`
Adds the given char filter.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`addCharFilter(String name, Map<String,String> params)`
Adds the given char filter.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`addTokenFilter(Class<? extends TokenFilterFactory> factory, String... params)`
Adds the given token filter.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`addTokenFilter(Class<? extends TokenFilterFactory> factory, Map<String,String> params)`
Adds the given token filter.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`addTokenFilter(String name, String... params)`
Adds the given token filter.
`CustomAnalyzer.Builder`
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`
CustomAnalyzer.`builder(Path configDir)`
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 given `ResourceLoader`.
`CustomAnalyzer.Builder`
CustomAnalyzer.ConditionBuilder.`endwhen()`
Close the branch and return to the main analysis chain
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`withDefaultMatchVersion(Version version)`
This match version is passed as default to all tokenizers or filters.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`withOffsetGap(int offsetGap)`
Sets the offset gap of the analyzer.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`withPositionIncrementGap(int posIncGap)`
Sets the position increment gap of the analyzer.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`withTokenizer(Class<? extends TokenizerFactory> factory, String... params)`
Uses the given tokenizer.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`withTokenizer(Class<? extends TokenizerFactory> factory, Map<String,String> params)`
Uses the given tokenizer.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`withTokenizer(String name, String... params)`
Uses the given tokenizer.
`CustomAnalyzer.Builder`
CustomAnalyzer.Builder.`withTokenizer(String name, Map<String,String> params)`
Uses the given tokenizer.