-
Notifications
You must be signed in to change notification settings - Fork 349
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
Column not found: 1054 Unknown column 'entity_id' #106
Comments
You have to patch the software to accept these new changes: roughly: app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Indexer/Fulltext/Datasource/CategoryData.php:168: if (isset($row['row_id'])) { app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Indexer/Fulltext/Datasource/CategoryData.php:198: ->from(['default_value' => $nameAttr->getBackendTable()], ['row_id']) app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Indexer/Fulltext/Datasource/CategoryData.php:222: "default_value.row_id = store_value.row_id" . app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Eav/Indexer/Fulltext/Datasource/AbstractAttributeData.php:83: 't_default.row_id = t_store.row_id', app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Eav/Indexer/Fulltext/Datasource/AbstractAttributeData.php:93: $select->from(['t_default' => $tableName], ['row_id', 'attribute_id']) app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Eav/Indexer/Fulltext/Datasource/AbstractAttributeData.php:97: ->where('t_default.row_id IN (?)', $entityIds) app/code/Smile/ElasticsuiteCatalog/Model/Category/Indexer/Fulltext/Datasource/AttributeData.php:41: if (isset($row['row_id'])) { |
Hello @bery , you are right, the 2.2.x branch is compatible with Magento 2.1 CE only, which means : does not currently support the staging feature. We are working on this support and plan to release it soon. One workaround can also be to temporary disable the staging module, to prevent database table changes. We'll keep you in touch. |
Also you need to remove the two view layout.xml files from module-layered_nagivationStaging and disable Magento_AdvancedSearch for layered lnavigation to work! Disabling modules does not remove their DI/etc from magento 2.1.1 ! you have t use module:uninstall which then relies upon composer to remove the module otherwise if you didnt use composer to install magento it will make a big mess! I've got elasticsuite working fine on 2.1.1-EE - but it took all these tweaks to get it to work perfectly. The Elasticsearch built into EE dies at 8GB of ram limit after 100K products - Elasticsuite finishes indexer fulltext in 2;30 not using 1/10tth of the Ram ! Plus it can be further optimized by logging the DB CALLS you will see ElasaticSuiite calls 3 DB CALLS that are not necessary for simple products during indexing which wastes a lot of DB call time! |
Hello @southerncomputer and many thanks for your little benchmark comparaison between raw Magento and our module :) We really appreciate to see such involvment from people using the module and such enthousiasm. About the staging, here is what we use to disable it actually (when creating a new project) :
|
For Smile's internal purpose : This is related to the staging-compatibility feature. |
By the way @southerncomputer Could you please indicate in which piece of code occur the 3 DB calls you are speaking above ? We'll gladly fix it to ensure even better performance during indexing :) |
ElasticsuiteCatalog\Model\Product\Indexer\Fulltext\Datasource\AttributeData.php If count(allChildrensIds)==0 then it calls mysql query with null Where in statement (at least on my implementation), maybe better way to disable this. I just used Database query logging to locate this call that loops over and over. Maybe try it and see! `<?php
namespace Smile\ElasticsuiteCatalog\Model\Product\Indexer\Fulltext\Datasource; use Smile\ElasticsuiteCatalog\Model\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData; /**
|
Thanks for coming back. I already made most of the changes above manually to make the module work, and for now, everything seems to be stable. Looking forward to the new version! |
Fixed by #123 |
Hi,
when trying to install Elasticsuite extension on Magento EE 2.1.1 I have ran into an issue when running 'setup:upgrade' command. I believe that this is related to the staging feature introduced in Magento EE 2.1. and changes in column names that came with this change - e.g. renaming entit_id to row_id
The text was updated successfully, but these errors were encountered: