# Adding stopword list from curl

**URL:** <https://discuss.elastic.co/t/adding-stopword-list-from-curl/10789>\
**Category:** Elasticsearch\
**Created:** [February 19, 2013, 4:55am UTC](https://discuss.elastic.co/t/adding-stopword-list-from-curl/10789 "2013-02-19T04:55:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![caymanag](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@caymanag](https://discuss.elastic.co/u/caymanag)\
**Post date:** [February 19, 2013, 4:55am UTC](https://discuss.elastic.co/t/adding-stopword-list-from-curl/10789/1 "2013-02-19T04:55:48Z")

</div>

Hello,

I was able to add a stopword list to my own analyzer by adding a section to  
the elasticsearch.yml file as follows:

index:  
analysis:  
analyzer:  
myanalyzer:  
type : standard  
stopwords: ["stopone", "stoptwo"]

This works, so if I type in the following command:  
curl -X GET "localhost:9200/myindex/\_analyze?analyzer=myanalyzer -d 'The  
quick brown fox jumped over the lazy dog'  
then I get the analyzed text returned as expected

Can I somehow add an analyzer without modifying elasticsearch.yml by using  
a curl command?

Thank you.

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2013, 6:19am UTC](https://discuss.elastic.co/t/adding-stopword-list-from-curl/10789/2 "2013-02-19T06:19:48Z")

</div>

This gist should help: [https://gist.github.com/dadoonet/2965777](https://gist.github.com/dadoonet/2965777)

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 19 févr. 2013 à 05:55, Cayman [caymanag@yahoo.com](mailto:caymanag@yahoo.com) a écrit :

Hello,

I was able to add a stopword list to my own analyzer by adding a section to the elasticsearch.yml file as follows:

index:  
analysis:  
analyzer:  
myanalyzer:  
type : standard  
stopwords: ["stopone", "stoptwo"]

This works, so if I type in the following command:  
curl -X GET "localhost:9200/myindex/\_analyze?analyzer=myanalyzer -d 'The quick brown fox jumped over the lazy dog'  
then I get the analyzed text returned as expected

Can I somehow add an analyzer without modifying elasticsearch.yml by using a curl command?

Thank you.

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![caymanag](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@caymanag](https://discuss.elastic.co/u/caymanag)\
**Post date:** [February 20, 2013, 8:29pm UTC](https://discuss.elastic.co/t/adding-stopword-list-from-curl/10789/3 "2013-02-20T20:29:03Z")

</div>

Perfect, thank you.

On Tuesday, February 19, 2013 1:19:48 AM UTC-5, David Pilato wrote:

> This gist should help: [Test case for multifield fields · GitHub](https://gist.github.com/dadoonet/2965777)
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 19 févr. 2013 à 05:55, Cayman \<[caym...@yahoo.com](mailto:caym...@yahoo.com) \<javascript:\>\> a  
> écrit :
> 
> Hello,
> 
> I was able to add a stopword list to my own analyzer by adding a section  
> to the elasticsearch.yml file as follows:
> 
> index:  
> analysis:  
> analyzer:  
> myanalyzer:  
> type : standard  
> stopwords: ["stopone", "stoptwo"]
> 
> This works, so if I type in the following command:  
> curl -X GET "localhost:9200/myindex/\_analyze?analyzer=myanalyzer -d 'The  
> quick brown fox jumped over the lazy dog'  
> then I get the analyzed text returned as expected
> 
> Can I somehow add an analyzer without modifying elasticsearch.yml by using  
> a curl command?
> 
> Thank you.
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:50am UTC](https://discuss.elastic.co/t/adding-stopword-list-from-curl/10789/4 "2017-07-06T02:50:27Z")

</div>

Closed on July 6, 2017, 2:50am UTC


