{"action":"created","issue":{"url":"https://api.github.com/repos/Smile-SA/elasticsuite/issues/1443","repository_url":"https://api.github.com/repos/Smile-SA/elasticsuite","labels_url":"https://api.github.com/repos/Smile-SA/elasticsuite/issues/1443/labels{/name}","comments_url":"https://api.github.com/repos/Smile-SA/elasticsuite/issues/1443/comments","events_url":"https://api.github.com/repos/Smile-SA/elasticsuite/issues/1443/events","html_url":"https://github.com/Smile-SA/elasticsuite/issues/1443","id":460773334,"node_id":"MDU6SXNzdWU0NjA3NzMzMzQ=","number":1443,"title":"ElasticSuite incompatible with Amasty Groupcat and MageWorx Customer Prices modules.","user":{"login":"LiamKarlMitchell","id":1968109,"node_id":"MDQ6VXNlcjE5NjgxMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1968109?v=4","gravatar_id":"","url":"https://api.github.com/users/LiamKarlMitchell","html_url":"https://github.com/LiamKarlMitchell","followers_url":"https://api.github.com/users/LiamKarlMitchell/followers","following_url":"https://api.github.com/users/LiamKarlMitchell/following{/other_user}","gists_url":"https://api.github.com/users/LiamKarlMitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/LiamKarlMitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiamKarlMitchell/subscriptions","organizations_url":"https://api.github.com/users/LiamKarlMitchell/orgs","repos_url":"https://api.github.com/users/LiamKarlMitchell/repos","events_url":"https://api.github.com/users/LiamKarlMitchell/events{/privacy}","received_events_url":"https://api.github.com/users/LiamKarlMitchell/received_events","type":"User","site_admin":false},"labels":[{"id":345730085,"node_id":"MDU6TGFiZWwzNDU3MzAwODU=","url":"https://api.github.com/repos/Smile-SA/elasticsuite/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-06-26T05:50:57Z","updated_at":"2019-06-27T02:27:29Z","closed_at":"2019-06-27T02:27:29Z","author_association":"NONE","body":"When Elastic Suite is enabled some other modules we have stop working properly.\r\nElastic Suite is nice so we want to keep using it, but also want to use the other modules to control product visibility per customer and custom prices per customer. (It's b2b).\r\n\r\nIs there a guide or a recommendation on how I can adapt existing modules to work with this new way of searching?\r\n\r\n\r\nThey do things to the search results and have a search_request.xml of their own or use \"Plugins\" in the etc/di.xml\r\n\r\nThings such as Viewing a category, Searching do not work with the below error.\r\n\r\nModule 1: Amasty Groupcat\r\n```\r\n1 exception(s):\r\nException #0 (LogicException): Field amasty_groupcat_entity_id does not exists in mapping\r\n\r\nException #0 (LogicException): Field amasty_groupcat_entity_id does not exists in mapping\r\n#0 /var/www/vhosts/magento/staging/vendor/smile/elasticsuite/src/module-elasticsuite-core/Search/Request/Query/Filter/QueryBuilder.php(97): Smile\\ElasticsuiteCore\\Index\\Mapping->getField('amasty_groupcat...')\r\n#1 /var/www/vhosts/magento/staging/vendor/smile/elasticsuite/src/module-elasticsuite-core/Search/Request/Query/Builder.php(105): Smile\\ElasticsuiteCore\\Search\\Request\\Query\\Filter\\QueryBuilder->create(Object(Smile\\ElasticsuiteCore\\Search\\Request\\ContainerConfiguration), Array)\r\n#2 /var/www/vhosts/magento/staging/generated/code/Smile/ElasticsuiteCore/Search/Request/Query/Builder/Interceptor.php(37): Smile\\ElasticsuiteCore\\Search\\Request\\Query\\Builder->createFilterQuery(Object(Smile\\ElasticsuiteCore\\Search\\Request\\ContainerConfiguration), Array)\r\n#3 /var/www/vhosts/magento/staging/vendor/smile/elasticsuite/src/module-elasticsuite-core/Search/Request/Query/Builder.php(89): Smile\\ElasticsuiteCore\\Search\\Request\\Query\\Builder\\Interceptor->createFilterQuery(Object(Smile\\ElasticsuiteCore\\Search\\Request\\ContainerConfiguration), Array)\r\n#4 /var/www/vhosts/magento/staging/vendor/magento/framework/Interception/Interceptor.php(58): Smile\\ElasticsuiteCore\\Search\\Request\\Query\\Builder->createQuery(Object(Smile\\ElasticsuiteCore\\Search\\Request\\ContainerConfiguration), NULL, Array, 1)\r\n#5 /var/www/vhosts/magento/staging/vendor/magento/framework/Interception/Interceptor.php(138): Smile\\ElasticsuiteCore\\Search\\Request\\Query\\Builder\\Interceptor->___callParent('createQuery', Array)\r\n```\r\n\r\nModule 2: MageWorx_CustomerPrices\r\nI have actually disabled this for now whilst figuring out the first.\r\n\r\n```\r\n1054 - Unknown column 'cat_index.position' in 'field list'\r\n```\r\n\r\nI was hoping this would be something I can quickly fix to add a Mapping and pull this data through, but if not should I be in touch with the modules developers to get them to make it compatible?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/Smile-SA/elasticsuite/issues/comments/506131047","html_url":"https://github.com/Smile-SA/elasticsuite/issues/1443#issuecomment-506131047","issue_url":"https://api.github.com/repos/Smile-SA/elasticsuite/issues/1443","id":506131047,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNjEzMTA0Nw==","user":{"login":"LiamKarlMitchell","id":1968109,"node_id":"MDQ6VXNlcjE5NjgxMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1968109?v=4","gravatar_id":"","url":"https://api.github.com/users/LiamKarlMitchell","html_url":"https://github.com/LiamKarlMitchell","followers_url":"https://api.github.com/users/LiamKarlMitchell/followers","following_url":"https://api.github.com/users/LiamKarlMitchell/following{/other_user}","gists_url":"https://api.github.com/users/LiamKarlMitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/LiamKarlMitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiamKarlMitchell/subscriptions","organizations_url":"https://api.github.com/users/LiamKarlMitchell/orgs","repos_url":"https://api.github.com/users/LiamKarlMitchell/repos","events_url":"https://api.github.com/users/LiamKarlMitchell/events{/privacy}","received_events_url":"https://api.github.com/users/LiamKarlMitchell/received_events","type":"User","site_admin":false},"created_at":"2019-06-27T02:27:29Z","updated_at":"2019-06-27T02:27:29Z","author_association":"NONE","body":"Thanks for the link to the mappings info seems that would be the way to go to fix the first one.\r\n\r\nTurns out that we actually did not need the features that were broken in the other modules in this circumstance and was able to safely bypass their functionality. Yay~\r\n\r\nAmasty/Groupcat/Plugin/Catalog/Model/Layer.php\r\nMade line 57 of beforePrepareProductCollection return null; to disable this.\r\n\r\nMageWorx\r\nPlugin/Layer/Category/ApplyCustomerPricesToCollection.php\r\nCommented Line 152\r\n//'cat_index_position' => 'cat_index.position',\r\n\r\nBecause cat_index is not used when we enable Elastic Suite it seems and the position comes from Elastic Suite anyway.\r\n\r\nOf course Ideally this work around would be done with the appropriate over-ride maybe an around plugin.\r\n\r\nWorked in my circumstance so thought I would post the outcome in-case someone else stumbles on the same scenario in the future Shrugs."}}
{"actor":{"display_login":"LiamKarlMitchell"}}