Skip to content

Commit

Permalink
feat: add english stemmer in es schema
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaliagg9791 committed Oct 4, 2023
1 parent ec9201e commit 0925646
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/store/elasticsearch/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ var indexSettingsTemplate = `{
"my_analyzer": {
"type": "custom",
"tokenizer": "my_tokenizer",
"filter": ["lowercase"]
"filter": ["lowercase", "english_stemmer"]
}
},
"filter": {
"english_stemmer": {
"type": "stemmer",
"name": "english"
}
},
"tokenizer": {
"my_tokenizer": {
"type": "pattern",
Expand Down

0 comments on commit 0925646

Please sign in to comment.