-
Notifications
You must be signed in to change notification settings - Fork 337
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
Unable to load Root Categories into ElasticSearch after a sub category was added #3192
Comments
Hello @brian-vdb, Have you run the Are you sure that you don't disable any ElasticSuite modules, especially the BR, |
I have run setup:upgrade, but I can check if enabling the module manually
would fix it. I have not tried that
…On Tue, 27 Feb 2024, 12:26 Vadym Honcharuk, ***@***.***> wrote:
Hello @brian-vdb <https://github.com/brian-vdb>,
Have you run the bin/magento setup:upgrade command? Were there any errors
during its execution?
Are you sure that you don't disable any ElasticSuite modules, especially
the module-elasticsuite-virtual-category?
BR,
Vadym
—
Reply to this email directly, view it on GitHub
<#3192 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWTFOT4PIZC3CI2HKB45MJDYVW7EXAVCNFSM6AAAAABDTHT4JSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRWGMZTSMRUGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello Vadym,
Due to my other responsibilities, I did not manage to test this up till
now, but I have further looked into the matter now. I did notice that I
forgot to enable the "Smile_ElasticsuiteCatalogGraphQL" and
"Smile_ElasticsuiteIndices" modules in my installation, however when I did
test the category creation with them enabled, the error persisted.
To provide a wider context for my installation, I will add my installation
steps after installing a bare Magento 2.4.6 backend with the
"Markshust_DisableTwoDactorAuth" module:
- rm -rf var/di/* var/generation/*
- bin/magento deploy:mode:set developer
- bin/magento indexer:reindex
- bin/magento cache:clean
- composer require smile/elasticsuite ~2.11.5.1
- bin/magento module:enable Smile_ElasticsuiteAdminNotification
Smile_ElasticsuiteCore Smile_ElasticsuiteCatalog
Smile_ElasticsuiteCatalogGraphQl Smile_ElasticsuiteCatalogRule
Smile_ElasticsuiteCatalogOptimizer Smile_ElasticsuiteTracker
Smile_ElasticsuiteThesaurus Smile_ElasticsuiteSwatches
Smile_ElasticsuiteIndices Smile_ElasticsuiteAnalytics
Smile_ElasticsuiteVirtualCategory
- bin/magento setup:upgrade
After this, I had to manually change the module versions in the
"setup_module" database table as they were all null. I also had to change
the Catalog search engine to Elasticsuite, but the communication with the
Elasticsearch endpoint appeared to be fine as indexing and searching for
products worked as expected.
- bin/magento indexer:reindex
- bin/magento cache:clean
After this, I opened the admin panel and created a sub-category "Shirts"
under the default root category. But after it deleted the default category
again using this installation, I tried to do another refresh of the module
like this:
- bin/magento setup:upgrade
- bin/magento indexer:reindex
- bin/magento cache:clean
And the problem persisted after this. I checked the database and the
default root category is definitely still saved in the database, but the
category is missing from the elasticsearch indexed documents. I would be
happy if this is an error on my side and if this is the case, please let me
know, but not having the ElasticSuite module installed does not necessarily
hinder my research in any way.
with kind regards,
Brian van den Berg
Op di 27 feb 2024 om 12:26 schreef Vadym Honcharuk ***@***.***
…:
Hello @brian-vdb <https://github.com/brian-vdb>,
Have you run the bin/magento setup:upgrade command? Were there any errors
during its execution?
Are you sure that you don't disable any ElasticSuite modules, especially
the module-elasticsuite-virtual-category?
BR,
Vadym
—
Reply to this email directly, view it on GitHub
<#3192 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWTFOT4PIZC3CI2HKB45MJDYVW7EXAVCNFSM6AAAAABDTHT4JSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRWGMZTSMRUGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I will try to reproduce your issue according to your steps on this week. BR, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Preconditions
While I was analyzing the interactions between ElasticSearch and ElasticSuite that are performed to handle data in the database, I came to the point where I wanted to know more about the category index mapping. After I created a single custom category in Magento 2, the reindexing and cache cleaning still worked fine, but when I tried loading the categories page, it gave an error. So I decided to query ElasticSearch for the category mappings and it returned only the new entry for the custom category. All of the root categories including "Default Category" were deleted from the Search Engine and not added back or updated.
Magento Version : 2.4.6
ElasticSuite Version : 2.11.5.1
Environment : Developer
Third party modules : markshust/magento2-module-disabletwofactorauth
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: