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 view, product sorting in frontend #787

Closed
gewaechshaus opened this issue Feb 27, 2018 · 12 comments
Closed

Category view, product sorting in frontend #787

gewaechshaus opened this issue Feb 27, 2018 · 12 comments

Comments

@gewaechshaus
Copy link

gewaechshaus commented Feb 27, 2018

Hello,

after updating elasticsuite to 2.5.3 by composer and elasticsearch to 5.6.8 (from 2.x) the category lists product sorting in frontend doesn't work anymore. I think this could be related to the elasticsearch scripting module. However, the script flags mentioned in the 2.x wiki (https://github.com/Smile-SA/elasticsuite/wiki/ServerConfig-2.x)

script.inline: on
script.indexed: on

seems to be replaced in elasticsearch 5?

We did replace script.indexed as it throws out a java exception. Can somebody who is deeper into elastic demistify this?

Another thing we noticed in context, is an error in magentos system.log

main.INFO: Request Success: {"method":"GET","uri":"http://xx.xxx.xxx.xxx:920/live_default_catalog_product   /product/_search","headers":{...] 
main.CRITICAL: Unable to unserialize value. [] []

Possible related to

@gewaechshaus gewaechshaus changed the title Product list sorting in frontend Category view, product sorting in frontend Feb 27, 2018
@afoucret
Copy link
Contributor

Hi @gewaechshaus,

The scripting configuration have change in ElasticSearch 5.x.
As it is not required anymore in the last version of ElasticSuite, you can safely remove these lines of configuration.

I suspect, your serialization problem is related to a low max_input_vars config value.
You should consider setting it too an higher value (> 5000).
It is a common error we have with Magento.

Please tell me if it solve your issue.

@gewaechshaus
Copy link
Author

gewaechshaus commented Feb 28, 2018

Hi @afoucret ,
many thanks for clarifying this.

I did enlarge the max_input_vars to 6000(from default 1000) and the max_input_nesting from 64 to 128. Still logging the unserialize error and got those sorting problems.

@afoucret
Copy link
Contributor

Did you clean the cache and have you reindex everything after the update ?

@gewaechshaus
Copy link
Author

gewaechshaus commented Feb 28, 2018

For sure, I did a indexer:reindex, cache:clean, cache:flush. As it didn't had an effect, I also restarted all related services

@afoucret
Copy link
Contributor

To be clear : are you talking about the manual product sorting ?

@gewaechshaus
Copy link
Author

Yes, we did sort all categories manualy. This works in backend, but doesn't work in frontend.

@afoucret
Copy link
Contributor

OK. Think I got it.

@gewaechshaus
Copy link
Author

Flushed the redis-cli, no effect. Stumbled upon https://magento.stackexchange.com/questions/194010/magento-2-2-unable-to-unserialize-value

afoucret pushed a commit to afoucret/elasticsuite that referenced this issue Feb 28, 2018
@afoucret
Copy link
Contributor

PR #790 will fix this one.
Will be part of release 2.5.4.

Feel free to test it and give us a feedback.

BR

@gewaechshaus
Copy link
Author

Does work! Fixed. Many many thanks!!

afoucret pushed a commit to afoucret/elasticsuite that referenced this issue Feb 28, 2018
afoucret added a commit that referenced this issue Feb 28, 2018
@gewaechshaus
Copy link
Author

@afoucret - and btw, mad respect for the merchandiser, real awesome

@afoucret
Copy link
Contributor

The 2.5.4 release is out and contains the patch

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