Hi
I want to apply Snowball to my field "word" which is a simple word in French.
Just below are my mapping and my settings, and at the bottom it's the function I want to call to apply Snowball to my field.
It's not working, first putSettings want me to put the body field (I don't understand why), and if I add the body field I get the message ""Validation Failed: 1: no settings to update;"", just to prove me I'm not doing the right way.
What should I change to make it work ?
thanks
marc
The ES-PHP client is a "low level" client which closely emulates the HTTP API. Meaning the JSON that normally goes into the HTTP request body goes inside body of the PHP request. Try this instead:
Thanks Zachary.
It's better for the request.
I've got an exception.
Each time I had it during my previous tests, the only solution I found was to delete the index and recreate a new index with new settings. I read a solution that uses index alias to modify the index ...
Is there a simple way to apply snowball with putSettings without restarting from 0.
[Fri Nov 20 11:30:21.259172 2015] [:error] [pid 17675] [client 10.229.100.7:49186] PHP Fatal error: Uncaught exception 'Elasticsearch\Common\Exceptions\BadRequest400Exception' with message '{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Can't update non dynamic settings[[index.analysis.filter.msf_filter.type, index.analysis.filter.msf_filter.language, index.analysis.analyzer.msf_analyzer.filter.0, index.analysis.analyzer.msf_analyzer.filter.2, index.analysis.analyzer.msf_analyzer.filter.1, index.analysis.analyzer.msf_analyzer.tokenizer]] for open indices [[msf]]"}],"type":"illegal_argument_exception","reason":"Can't update non dynamic settings[[index.analysis.filter.msf_filter.type, index.analysis.filter.msf_filter.language, index.analysis.analyzer.msf_analyzer.filter.0, index.analysis.analyzer.msf_analyzer.filter.2, index.analysis.analyzer.msf_analyzer.filter.1, index.analysis.analyzer.msf_analyzer.tokenizer]] for open indices [[msf]]"},"status":400}' in /opt/MSF/development/www/html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:613\nStack trace:\n#0 in /opt/MSF/development/www/html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php on line 615
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.