-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception: catalog_product index does not exist yet. #173
Comments
hello @diybook and thank you for trying our module. Did you run the setup:upgrade after adding the module to Magento ? |
Yes I did. Initially I had troubles installing the plugins for the elasticuite server, and therefore get error messages. After successful install of the plugins no error occured, but maybe the db is messed up with something. |
maybe you could give a try to removing Smile_* entries from the setup_module then process again a setup:upgrade. Or now that you have everything running fines regarding ES plugins, try a reinstall from scratch. Regards. |
unfortunately it's not working. I've installed the magento module on a new dump of the production setup. (clean db, and files) But the same error is occuring. Do you have any other ideas? |
What about reindexinng did you run Did you check ES server install requirement is OK as explained into : https://github.com/Smile-SA/elasticsuite/wiki/ServerConfig ? |
Yes, reindexing runs without any trouble and without error messages. ES install should be ok. Server is up and running. But ES Server Version is 2.4.1. Maybe that this is a problem because install documentation shows version 2.2.0. I've installed JDK 1.8 as recommended. curl localhost:9200 shows: |
Did you install the plugins (icu and phonetic) and did you restart the ES server after the install ? |
Yes I did this too. Initially I had problems installing the plugins, but in the end it worked. I've restarted the ES beacause otherwise reindexing did not work. But reindexing do not show any error. |
Hi @diybook, I try to uninstall the phonetic plugin on my own environment to see own the error is reported, and I am able to see the following error :
And I get the following error in my ES logs located into /var/log/elasticsearch/ :
Tips : enabling debug log of ElasticSuite in the module configuration allow to have the ES error the Magento logs. I think that your PHP environment is configured to not display errors even in CLI mode. |
Hi I gave it another try. What I found out is that the server is running and working as intended. Plugins are installed and working. Reindexing do not show any error. But the systemlog of magento shows the following error: I have no idea why the requestet index is not generated. The elasticsearch log shows the folloging lines:
No indexes for catalog_product are generated. But why? There are 5 products in the database? Any Ideas? Maybe there is something wrong with the database. The default main category is empty because we use another main category for the configured shops. But the configuration is ok, because magento is working correct in this setup. How can I find out why the catalog_product index is not there? Best regards, |
To close this issue some update: Installation worked on a new Magento installation. I'm not sure what was wrong but definitly something was wrong with the magento-db. Best regards, and thanks for your help. |
Same issue in Magento 2.1.2 with 5-6 catalog rules. There is about 1 million single (both configurable and children) products so catalog rule indexers takes too long. Why should we wait to complete all indexers to be completed ? |
I've got that issue too and discovered that this functions doesnt index data for admin area (Store 0): For the test when i added Magento ver. 2.1.2 |
Perhaps helpful: if you do not change the search engine setting in Stores > Configuration > Catalog > Catalog Search then the catalog_product index will not be generated in ElasticSearch. |
catalog_product index does not exist yet. Make sure everything is reindexed a:4:{i:0;s:75:"catalog_product index does not exist yet. Make sure everything is reindexed";i:1;s:8304:"#0 /Applications/AMPPS/www/testsssports/app/code/Smile/ElasticsuiteCore/Search/Request/ContainerConfiguration.php(161): Smile\ElasticsuiteCore\Index\IndexOperation->getIndexByName('catalog_product', 1) Can anyone help please. ElasticSearch => 2.4.6 Please reply ASAP |
as written before: Run the index, while elasticsuite is selected in the backend.
|
In most cases solution provided from @amenk works great. Another possible scenario is that the value for That was making the command Make sure you set it as |
I also want to share my solution on this. I am running ES under Docker, and found that the above solutions did not work until after I restarted ES. |
Thanks for the tip @matheusgontijo To know for sure, go into your database and run |
For me that issue started to appear when my Also, instead of doing raq sql queries, you can force all indexes to be updated with |
Thank you @ericrisler! The problem is the documentation. Should be a screenshot like the other configuration explanations above. |
Thanks, you helped me a lot |
This solution worked for me. Thank you. |
Hi Romain, thanks for introducing elasticsearch to me in the post magento/magento2#7027. I think the elasticsuite is really greath and wanted to try it myself.
I´ve installed the ElasticSearch server as well as the magento module but getting the following errors on the frontend.
`1 exception(s):
Exception #0 (LogicException): catalog_product index does not exist yet. Make sure everything is reindexed
Exception #0 (LogicException): catalog_product index does not exist yet. Make sure everything is reindexed
#0 /var/www/diyparts.staging/diyparts_dev/vendor/smile/elasticsuite/src/module-elasticsuite-catalog-rule/Model/Rule/Condition/Product/AttributeList.php(166): Smile\ElasticsuiteCore\Index\IndexOperation->getIndexByName('catalog_product', Object(Magento\Store\Model\Store\Interceptor))
#1 /var/www/diyparts.staging/diyparts_dev/vendor/smile/elasticsuite/src/module-elasticsuite-catalog-rule/Model/Rule/Condition/Product/AttributeList.php(108): Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\Product\AttributeList->getMapping()
#2 /var/www/diyparts.staging/diyparts_dev/vendor/smile/elasticsuite/src/module-elasticsuite-catalog-rule/Model/Rule/Condition/Product.php(77): Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\Product`
Reindexing does not help, so I've no clue how to further go on. Maybe you know what to do.
Installed Magento version: 2.1.0
using Elasticsuite version 2.2.0
I've updated to Magento version: 2.1.1
using Elasticsuite version 2.2.2 showing the same error.
The text was updated successfully, but these errors were encountered: