Adding stopword list from curl

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.
For more options, visit https://groups.google.com/groups/opt_out.

This gist should help: https://gist.github.com/dadoonet/2965777

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

Le 19 févr. 2013 à 05:55, Cayman 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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

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

Le 19 févr. 2013 à 05:55, Cayman <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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.