collective / collective.solr

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

SearchableText "foo **" with a standalone wildcard causes error #362

Open reebalazs opened 1 year ago

reebalazs commented 1 year ago

Fix the problem and make "foo **" result in the same query as "foo". This currently causes an 500 Internal Server Error.

One might argue that "foo **" is not a valid query, to start with. However it can be expected as an input, thus it should not cause a cryptic error anyway. The fix should cause to yield the expected results by stripping out the standalone wildcard.