Modifier and Type | Fields and Description |
---|---|
static String |
ANALYZER_TRIGRAM
Sets the
analyzer() to "trigram". |
static String |
ANALYZER_WHITESPACE
Sets the
analyzer() to "whitespace". |
Modifier and Type | Optional Element and Description |
---|---|
String |
analyzer
Permits to specify the analyzer to use for this field.
|
Analyzed.IndexOption |
indexOptions
Permits to specify additional index options sent to elasticsearch.
|
public static final String ANALYZER_WHITESPACE
analyzer()
to "whitespace".
This will instruct elasticsearch to use the whitespace analyzer which creates a token for each whitespace separated word.
See the elasticsearch docs for a detailed description of the behaviour.
public static final String ANALYZER_TRIGRAM
analyzer()
to "trigram".
This will instruct elasticsearch to use a trigram analyzer which creates "shingles" of min length 2 and max length 3.
See the elasticsearch docs for a detailed description of the behaviour.
public abstract String analyzer
public abstract Analyzed.IndexOption indexOptions
Copyright © 2018. All rights reserved.