Stop phrase removal or remove phrases from search query

Does elasticsearch handle stop phrase removal ? I would like to remove some
phrases (only if they appear in that order) from the search query.
Currently i am trying to do this only on the search side. I tried it as
follows, but it didnt work

curl -XPUT 'localhost:9200/designs_v1/_settings' -d '
"analysis": {
"filter": {
"shingle_omit_unigrams": {
"type": "shingle",
"max_shingle_size": 3,
"output_unigrams": false
"my_stop": {
"type": "stop",
"stopwords": ["walt disney", "magic kingdom", "disney",
"analyzer": {
"shingle": {
"type": "custom",
"tokenizer": "standard",
"filter": ["lowercase", "my_stop", "kstem",

Does anyone know whether this feature is supported in elasticsearch ?


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit