<font face="Arial, Verdana">Hi,</font>
<font face="Arial, Verdana">we have same problem.</font>
<font face="Arial, Verdana">And I noted that problem is the double backslash ( "//" ) in the url</font>
<font face="Arial, Verdana"></font>
<font face="Arial, Verdana">We are using ElasticSearch 5.6.9 and if we launch this url:</font>
<font face="Arial, Verdana"></font>
<font face="Arial, Verdana">http://tst-colaes01.portali.csi.it:9200/collectiveaccess/_refresh</span></font></div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal;"><font face="Arial, Verdana"></font>
<font face="Arial, Verdana">we obtain this: </font>
<font face="Arial, Verdana"></font>
<font face="Arial, Verdana">{"_shards":{"total":2,"successful":1,"failed":0}}</font>
<font face="Arial, Verdana"></font>
<font face="Arial, Verdana">Instead</font>
<font face="Arial, Verdana">Instead if we launch this: </font>
<font face="Arial, Verdana"></font>
<font face="Arial, Verdana">http://tst-colaes01.portali.csi.it:9200//collectiveaccess/_refresh</span></font></div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal;"><font face="Arial, Verdana"></font>
<font face="Arial, Verdana">this is the response:</font>
<font face="Arial, Verdana"></font>
<font face="Arial, Verdana">{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_expression","resource.id":"","index_uuid":"_na","index":""}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_expression","resource.id":"","index_uuid":"na","index":""},"status":404}</font>
So I remove one backslash from Elastic Search URL in search.conf
# -------------------
# ElasticSearch plugin configuration
# -------------------
# Enter the elastic search base url here (without any index names)
#LM 27/11/17S PARAMETER BY PROJECT
#search_elasticsearch_base_url = http://localhost:9200/</span></div><div style="">search_elasticsearch_base_url = http://tst-colaes01.portali.csi.it:9200
#LM 27/11/17E
but we have now an other error when we try to go to check configuration from browser ( http://tst-colaweb01.csi.it/cola/index.php/administrate/setup/ConfigurationCheck/DoCheck )
Updating the ElasticSearch mapping failed. This is probably because of a type conflict. Try recreating the entire search index. The original error was illegal_argument_exception: request [/collectiveaccess/ca_objects/_mapping] contains unrecognized parameter: [ignore_conflicts]
So we try to do a reindex using caUtils but we obtain this PHP Error:
[29-May-2018 17:22:08 Europe/Rome] PHP Fatal error: Uncaught Exception: Updating the ElasticSearch mapping failed. This is probably because of a type conflict. Try recreating the entire search index. The original error was illegal_argument_exception: request [/collectiveaccess/ca_objects/_mapping] contains unrecognized parameter: [ignore_conflicts] in /data/www/html/cola/app/lib/core/Plugins/SearchEngine/ElasticSearch.php:128
Stack trace:
#0 /data/www/html/cola/app/lib/core/Plugins/SearchEngine/ElasticSearch.php(539): WLPlugSearchEngineElasticSearch->refreshMapping()
#1 /data/www/html/cola/app/lib/core/Plugins/SearchEngine/ElasticSearch.php(320): WLPlugSearchEngineElasticSearch->flushContentBuffer()
#2 [internal function]: WLPlugSearchEngineElasticSearch->__destruct()
#3 {main}
thrown in /data/www/html/cola/app/lib/core/Plugins/SearchEngine/ElasticSearch.php on line 128
Any idea?
Thanks a lot
Luigi Montinaro
CSI Piemonte
CA - Providence 1.7.5
ElasticSearch 5.6.9
PHP 7.1.16