I am trying to install smile/elasticsuite
using composer but I am getting a really strange error.
To install the module I used:
composer require smile/elasticsuite:2.6.0
And got successful response:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
- Installing react/promise (v2.7.0): Loading from cache
- Installing guzzlehttp/streams (3.0.0): Loading from cache
- Installing guzzlehttp/ringphp (1.1.1): Loading from cache
- Installing elasticsearch/elasticsearch (v5.3.2): Loading from cache
- Installing smile/elasticsuite (2.6.0): Loading from cache
Package sjparkinson/static-review is abandoned, you should avoid using it. Use phpro/grumphp instead.
Writing lock file
Generating autoload files
Then run following:
bin/magento setup:upgrade
bin/magento cache:flush
Now, on the front-end, I get the following error message:
Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Smile_ElasticsuiteCatalog data: current version - none, required version - 1.5.0
Smile_ElasticsuiteCatalogRule data: current version - none, required version - 1.0.0
Smile_ElasticsuiteCatalogOptimizer data: current version - none, required version - 1.1.0
Smile_ElasticsuiteSwatches data: current version - none, required version - 0.0.1
Smile_ElasticsuiteThesaurus data: current version - none, required version - 1.0.0
Smile_ElasticsuiteTracker data: current version - none, required version - 1.2.0
Smile_ElasticsuiteVirtualCategory data: current version - none, required version - 1.3.0
Updates the Magento software doesn't do anything.
Any ideas?
UPDATE
After adding the missing configurations, I get an error on bin/magento setup:upgrade
:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "No handler for type [text] declared on field [search]"
}
],
"type": "mapper_parsing_exception",
"reason": "No handler for type [text] declared on field [search]"
},
"status": 400
}
UPDATE 2:
Result of curl:
{
"name" : "Squidboy",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "0L1pnmTiQBaWL21J5p5iPw",
"version" : {
"number" : "2.4.5",
"build_hash" : "c849dd13904f53e63e88efc33b2ceeda0b6a1276",
"build_timestamp" : "2017-04-24T16:18:17Z",
"build_snapshot" : false,
"lucene_version" : "5.5.4"
},
"tagline" : "You Know, for Search"
}