Skip to content
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

category_ids column not found #3

Open
keyur-iksula opened this issue Dec 10, 2014 · 2 comments
Open

category_ids column not found #3

keyur-iksula opened this issue Dec 10, 2014 · 2 comments

Comments

@keyur-iksula
Copy link

I found an issue while reindexing the products flat data, when i wrote code in try catch block it shows me error in _getDocuments() function of resource/catalog/product/indexer/elasticgento.php file.

Can any one help me to find the solution?

@dng-dev
Copy link

dng-dev commented Dec 10, 2014

Hi can you give me more information for this?

@keyur-iksula
Copy link
Author

Hello Daniel ,

I have installed this extension to new fresh 1.9.1.0 magento. I have done the required configuration from backend (attached an image). When i tried to re-index "Product flat data" from indexing i found error that want allow me to reindex the data. To identify the error i wrote exception handing code in function _getDocuments($storeId, $parameters = array()) [ line no: 237] of model/resource/catalog/product/indexer/elasticgento.php file.

After writing exception handing it's shows me error "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.category_ids' in 'field list' " so i have changed code of that function. i have added following line of code to skip iteration of attribute code is 'category_ids'.

[appended on line no: 282 ]
if($attributeCode == "category_ids"){
continue;
}

After appending above code, i can able to do re-indexing of product flat data and i can see product flat data in elastic document by hitting url in browser.

But after indexing when i go to category page, there isn't any layered navigation visible. i confirmed that products are coming from elastic document but layered navigation is not visible.

After digging into code i found the attributes count for product collection is returning null, so layered navigation is not displaying in category page.

Thanks for your instance replay, it will really helpful if you resolve my issue.

elasticgento configuration
elasticgento reindex error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants