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?
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?
--
David
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.