Interface SuggestTokenizer
- All Known Subinterfaces:
CustomTokenizer
,WhitespaceTokenizer
public interface SuggestTokenizer
The tokenizer defines the tokens that are used to match against the Suggest Query input.
Example to create a subtype instance using the builder pattern
SuggestTokenizer suggestTokenizer = SuggestTokenizer.customBuilder()
plusInputs(inputsBuilder -> inputsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomTokenizerBuilder
builder for custom subtypestatic SuggestTokenizer
deepCopy
(SuggestTokenizer template) factory method to create a deep copy of SuggestTokenizer@NotNull String
getType()
static com.fasterxml.jackson.core.type.TypeReference<SuggestTokenizer>
gives a TypeReference for usage with Jackson DataBindstatic WhitespaceTokenizerBuilder
builder for whitespace subtypedefault <T> T
withSuggestTokenizer
(Function<SuggestTokenizer, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
deepCopy
factory method to create a deep copy of SuggestTokenizer- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
customBuilder
builder for custom subtype- Returns:
- builder
-
whitespaceBuilder
builder for whitespace subtype- Returns:
- builder
-
withSuggestTokenizer
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-