Skip to content

Commit

Permalink
Add stop words in pt-br
Browse files Browse the repository at this point in the history
  • Loading branch information
rtancman committed Oct 28, 2020
1 parent e64811c commit 9153ec8
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions kibana/example2.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,50 @@ GET /example2/_search
}
}
}
```


### Removendo stop words na lingua portuguesa
```
PUT /example3
{
"settings": {
"index": {
"analysis": {
"filter": {
"synonym": {
"type": "synonym",
"lenient": true,
"synonyms": [
"i-pod, i pod => ipod",
"universe, cosmos"
]
},
"stop_words_brazilian": {
"type": "stop",
"stopwords": "_brazilian_"
}
},
"analyzer": {
"default": {
"filter": [
"asciifolding",
"lowercase",
"stop_words_brazilian",
"synonym"
],
"tokenizer": "standard"
}
}
}
}
}
}
POST /example3/_analyze
{
"analyzer": "default",
"text": "Este é um exemplo de texto que eu gostaria de indexar."
}
```

0 comments on commit 9153ec8

Please sign in to comment.