Hello,
I am not able to make this work.
curl -X GET 'http://localhost:9200/magentomattca/'
{"magentomattca":{"aliases":{},"mappings":{"product":{"properties":{"attribute_set_id":{"type":"long"},"categories":{"type":"long"},"category_name_ro":{"type":"string"},"created_at":{"type":"string"},"entity_id":{"type":"long"},"entity_type_id":{"type":"long"},"has_discount_0_1":{"type":"boolean"},"has_discount_1_1":{"type":"boolean"},"has_discount_2_1":{"type":"boolean"},"has_discount_3_1":{"type":"boolean"},"has_options":{"type":"boolean"},"in_stock":{"type":"boolean"},"position":{"properties":{"category_id":{"type":"long"},"position":{"type":"long"}}},"price_0_1":{"type":"long"},"price_1_1":{"type":"long"},"price_2_1":{"type":"long"},"price_3_1":{"type":"long"},"required_options":{"type":"boolean"},"show_in_categories":{"type":"string"},"sku":{"type":"string"},"store_id":{"type":"long"},"type_id":{"type":"string"},"unique":{"type":"string"},"updated_at":{"type":"string"}}}},"settings":{"index":{"creation_date":"1457350472747","uuid":"NaFtk-9XQ0SiUAVAK8eDsQ","number_of_replicas":"1","number_of_shards":"5","version":{"created":"1070599"}}},"warmers":{}}}
curl -X GET 'http://localhost:9200/magentomattca/_settings'
{"magentomattca":{"settings":{"index":{"creation_date":"1457350472747","uuid":"NaFtk-9XQ0SiUAVAK8eDsQ","number_of_replicas":"1","number_of_shards":"5","version":{"created":"1070599"}}}}}
but for
php /home/mattca/public_html/shell/indexer.php -reindex catalogsearch_fulltext
I get
`Catalog Search Index index process unknown error:
exception 'Guzzle\Http\Exception\ClientErrorResponseException' with message 'Client error response
[status code] 400
[reason phrase] Bad Request
[url] http://localhost:9200/magentomattca/_settings' in /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Exception/BadResponseException.php:43
Stack trace:
#0 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Message/Request.php(145): Guzzle\Http\Exception\BadResponseException::factory(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Message\Response))
#1 [internal function]: Guzzle\Http\Message\Request::onRequestError(Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#2 /home/mattca/public_html/lib/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(164): call_user_func(Array, Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#3 /home/mattca/public_html/lib/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(53): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'request.error', Object(Guzzle\Common\Event))
#4 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Message/Request.php(589): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('request.error', Object(Guzzle\Common\Event))
#5 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Message/Request.php(378): Guzzle\Http\Message\Request->processResponse(Array)
#6 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequest.php(49): Guzzle\Http\Message\Request->setState('complete', Array)
#7 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php(303): Guzzle\Http\Message\EntityEnclosingRequest->setState('complete', Array)
#8 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php(257): Guzzle\Http\Curl\CurlMulti->processResponse(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Curl\CurlHandle), Array)
#9 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php(240): Guzzle\Http\Curl\CurlMulti->processMessages()
#10 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php(224): Guzzle\Http\Curl\CurlMulti->executeHandles()
#11 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php(111): Guzzle\Http\Curl\CurlMulti->perform()
#12 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Curl/CurlMultiProxy.php(94): Guzzle\Http\Curl\CurlMulti->send()
#13 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Client.php(284): Guzzle\Http\Curl\CurlMultiProxy->send()
#14 /home/mattca/public_html/lib/vendor/guzzle/http/Guzzle/Http/Message/Request.php(198): Guzzle\Http\Client->send(Object(Guzzle\Http\Message\EntityEnclosingRequest))
#15 /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/GuzzleConnection.php(189): Guzzle\Http\Message\Request->send()
#16 /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/GuzzleConnection.php(104): Elasticsearch\Connections\GuzzleConnection->sendRequest(Object(Guzzle\Http\Message\EntityEnclosingRequest), '{"settings":{"n...')
#17 /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(166): Elasticsearch\Connections\GuzzleConnection->performRequest('PUT', '/magentomattca/...', Array, '{"settings":{"n...')
#18 /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php(86): Elasticsearch\Transport->performRequest('PUT', '/magentomattca/...', Array, Array)
#19 /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Namespaces/IndicesNamespace.php(246): Elasticsearch\Endpoints\AbstractEndpoint->performRequest()
#20 /home/mattca/public_html/app/code/community/Smile/ElasticSearch/Model/Resource/Engine/Elasticsearch/Index.php(349): Elasticsearch\Namespaces\IndicesNamespace->putSettings(Array)
#21 /home/mattca/public_html/app/code/community/Smile/ElasticSearch/Model/Resource/Engine/Elasticsearch/Index.php(449): Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Index->_prepareIndex()
#22 /home/mattca/public_html/app/code/community/Smile/ElasticSearch/Model/Indexer/Fulltext.php(193): Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Index->prepareNewIndex()
#23 /home/mattca/public_html/app/code/core/Mage/Index/Model/Process.php(212): Smile_ElasticSearch_Model_Indexer_Fulltext->reindexAll()
#24 /home/mattca/public_html/app/code/core/Mage/Index/Model/Process.php(260): Mage_Index_Model_Process->reindexAll()
#25 /home/mattca/public_html/shell/indexer.php(168): Mage_Index_Model_Process->reindexEverything()
#26 /home/mattca/public_html/shell/indexer.php(216): Mage_Shell_Compiler->run()
#27 {main}
Next exception 'Elasticsearch\Common\Exceptions\BadRequest400Exception' with message '{"error":"ElasticsearchIllegalArgumentException[Can't update [index.number_of_replicas] on closed indices [[magentomattca]] - can leave index in an unopenable state]","status":400}' in /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/GuzzleConnection.php:266
Stack trace:
#0 /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/GuzzleConnection.php(194): Elasticsearch\Connections\GuzzleConnection->process4xxError(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Exception\ClientErrorResponseException), '{"settings":{"n...')
#1 /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/GuzzleConnection.php(104): Elasticsearch\Connections\GuzzleConnection->sendRequest(Object(Guzzle\Http\Message\EntityEnclosingRequest), '{"settings":{"n...')
#2 /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(166): Elasticsearch\Connections\GuzzleConnection->performRequest('PUT', '/magentomattca/...', Array, '{"settings":{"n...')
#3 /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php(86): Elasticsearch\Transport->performRequest('PUT', '/magentomattca/...', Array, Array)
#4 /home/mattca/public_html/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Namespaces/IndicesNamespace.php(246): Elasticsearch\Endpoints\AbstractEndpoint->performRequest()
#5 /home/mattca/public_html/app/code/community/Smile/ElasticSearch/Model/Resource/Engine/Elasticsearch/Index.php(349): Elasticsearch\Namespaces\IndicesNamespace->putSettings(Array)
#6 /home/mattca/public_html/app/code/community/Smile/ElasticSearch/Model/Resource/Engine/Elasticsearch/Index.php(449): Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Index->_prepareIndex()
#7 /home/mattca/public_html/app/code/community/Smile/ElasticSearch/Model/Indexer/Fulltext.php(193): Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Index->prepareNewIndex()
#8 /home/mattca/public_html/app/code/core/Mage/Index/Model/Process.php(212): Smile_ElasticSearch_Model_Indexer_Fulltext->reindexAll()
#9 /home/mattca/public_html/app/code/core/Mage/Index/Model/Process.php(260): Mage_Index_Model_Process->reindexAll()
#10 /home/mattca/public_html/shell/indexer.php(168): Mage_Index_Model_Process->reindexEverything()
#11 /home/mattca/public_html/shell/indexer.php(216): Mage_Shell_Compiler->run()
#12 {main}
`