Skip to content

Commit

Permalink
Add custom word_delimiter fikter
Browse files Browse the repository at this point in the history
This should allow splitting text by e.g. colon or slash, and searching parts of the word.

Fixes: #31
https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-word-delimiter-tokenfilter.html
  • Loading branch information
tmotyl authored Jan 31, 2022
1 parent 9897062 commit efdcf5f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions config/Elasticorn/docsearch/IndexConfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ analysis:
typo3_stemmer:
type: stemmer
language: minimal_english
typo3_filter:
type: word_delimiter
preserve_original: true
analyzer:
typo3_analyzer:
filter:
- lowercase
- asciifolding
- typo3_stemmer
tokenizer: standard
- lowercase
- asciifolding
- typo3_filter
- typo3_stemmer
tokenizer: whitespace

0 comments on commit efdcf5f

Please sign in to comment.