Stopwords in kibana

In kibana stopwords is not working .
PUT /samp1/_settings
{

"analysis": {
  "analyzer": {
    "custname": {
      "type":      "stop", 
      "stopwords":  [ "and", "the","." ,"on","dog"] 
    }
  }
}

}
This is my stopword setting
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 5,
"max_score": 1,
"hits": [
{
"_index": "samp1",
"_type": "samp",
"_id": "8QUwAWMB5KTKswR5ITjP",
"_score": 1,
"_source": {
"work": "dog sleeping "
}
},
{
"_index": "samp1",
"_type": "samp",
"_id": "2AUxAWMB5KTKswR5NzqI",
"_score": 1,
"_source": {
"work": "cat playing"
}
},
{
"_index": "samp1",
"_type": "samp",
"_id": "fQUwAWMB5KTKswR5bjlJ",
"_score": 1,
"_source": {
"work": "cat and dog sleeping "
}
},
{
"_index": "samp1",
"_type": "samp",
"_id": "kQUwAWMB5KTKswR58jol",
"_score": 1,
"_source": {
"work": "cat and dog sleeping "
}
},
{
"_index": "samp1",
"_type": "samp",
"_id": "NwUwAWMB5KTKswR5Ozk2",
"_score": 1,
"_source": {
"work": "cat sleeping "
}
}
]
}
}
this is my samp1 index
when I m querying
GET /samp1/_search
{
"query": {
"match": {
"work": {
"query": "cat dog",
"minimum_should_match": "100%"
}
}

}
}
with and without stopword I m getting same answer

What to do to get stopword of "dog"?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.