Hi, I'm trying to use stop words with ELK, everything seems ok but when I'm inserting a new value the filter does not apply. Using _analyze it works ...
I think something is wrong in my mapping but I don't find what. Thank's for your help.
`
DELETE /my_index
PUT /my_index
{
"settings": {
"analysis": {
"analyzer": {
"filtre_twitter": {
"tokenizer": "standard",
"filter": [ "my_twitter_filter", "uppercase" ]
}
},
"filter": {
"my_twitter_filter": {
"type": "stop",
"ignore_case": true,
"stopwords": ["and", "is", "the", "to", "all"]
}
}
}
},
"mappings": {
"properties": {
"mon_champ": {
"type" : "text",
"analyzer": "filtre_twitter"
}
}
}
}
GET /my_index/_mappings
POST /my_index/_doc
{
"mon_champ": "AAA and BBB is CCC the DDD This is an example of the english analyzer"
}
=> Don't work
GET /my_index/_search
{
"query": {
"match_all": {}
}
}
POST /my_index/_analyze
{
"analyzer": "filtre_twitter",
"text": "AAA and BBB is CCC the DDD This is an example of the english analyzer"
}
=> Works ?!?
`