\BaseIndexSettings
Synonyms https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-tokenfilter.html.
ASCII folding
https://www.elastic.co/guide/en/elasticsearch/guide/current/asciifolding-token-filter.html
Snowball
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-snowball-analyzer.html
Thai tokenizer
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-thai-tokenizer.html
Reverser
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-reverse-tokenfilter.html
Elisions, possibly suitable for French
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-elision-tokenfilter.html
Common grams
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-common-grams-tokenfilter.html
This page has a long list
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html#german-analyzer
Boost weight and mix of stem/unstemmed
https://www.elastic.co/guide/en/elasticsearch/guide/current/most-fields.html
Extend this class to create your own index settings
Synopsis
- // members
- private bool $foldedAscii = false;
- protected array $stopWords = ;
- private array $synonyms = ;
- private array $filters = ;
- private array $analyzers = ;
- protected $stopWordFilter = NULL;
- // methods
- public void setAsciiFolding()
- public void getAsciiFolding()
- public void setStopwords()
- public void getStopwords()
- public void addFilter()
- public void addAnalyzer()
- public void generateConfig()
Members
private
- $analyzers
- $filters
- $foldedAscii
—
bool
If true add a field called folded with likes of está converted to esta. - $synonyms
—
array
Synonyms for this index in form of CSV terms => actual term.
protected
- $stopWordFilter
- $stopWords
Methods
public
- addAnalyzer() — Add an analyzer, expressed as an array.
- addFilter() — Add a filter, expressed as an array.
- generateConfig()
- getAsciiFolding()
- getStopwords()
- setAsciiFolding() — Set to true to add an extra field containing a folded version of terms, i.e. not accents on the letters.
- setStopwords() — NOTE: Test with _german_ or _english_ Set the stopwords for this index.