-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fix LIMIT_UNLIMITED type issue #140
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Having some doubts on a bigger picture:
|
I don't see the use case for that. Elasticsearch discourages fetching result sets with size (+ offset) > max_result_window and explicitly states to use the scroll API (or better the search_after method: https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after) Maybe add a setter and getter for the doScrollRequest Property? |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
@kingjia90 I think proposed solution is fine and should not do any harm. @bckpff could you please once more add a comment to sign the CLA ... not sure if it works already in PR description. thank you very much. |
I have read the CLA Document and I hereby sign the CLA |
src/IndexService/ProductList/ElasticSearch/AbstractElasticSearch.php
Outdated
Show resolved
Hide resolved
There's a potential bc-break in the native parameter type, if they passed Probably could refactor by removing the constant, and just stick with |
But that bc break already happened with Pimcore 11.0 right? |
ah ok, got it, then merging soon |
This fixes a type issue with the \Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\ProductList\ElasticSearch\AbstractElasticSearch::LIMIT_UNLIMITED constant.
The external setter for the limit only accepts integer values thus preventing the use of the elastic scroll api and limiting result sets to 10.000 (default configuration) or the value max_result_window.
I have read the CLA Document and I hereby sign the CLA