collective / collective.solr

Solr search engine integration for Plone
https://pypi.org/project/collective.solr/
21 stars 46 forks source link

java.lang.NumberFormatException: For input string: "10000000000000" #357

Closed tisto closed 1 year ago

tisto commented 1 year ago

When the rows parameter that is sent to Plone/Solr is set to a large number (e.g "10000000000000"), Solr raises an exception:

java.lang.NumberFormatException: For input string: "10000000000000"

Background: The listing/search block in Plone 6 (Volto) only shows the right number for the total results if no limit is set on the result set. Editors set a very high number to avoid this. If the query is sent to Plone/Solr then, the exception is thrown.

We could solve this on Volto level. Though, c.solr seems to be a more accurate layer to fix this problem IMO.