-
Notifications
You must be signed in to change notification settings - Fork 56
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
Search broken with Plone 5.2rc4 because of operator #174
Comments
In collective#54 I added a slightly simpler implementation of my fix. |
I have the same issue, and will check your fix now. |
collective#54 fixes it for me too. |
well no, fulltext search is broken. |
collective@2c01dcb fixes this for Text Widget. I fear we need to check all other widgets too. |
@pbauer @jensens this could be a fix for this problem: zopefoundation/Products.ZCatalog#79 |
@thet thanks for pointing us to the issue, but no, I dont think it is related. |
Not all catalog-indexes support the operator option (i.e. providing the option to query using 'and' or 'or'). But when you use the Checkbox- or Multiselect-Widgets you always get that configuration-option even though the selected index may not provide this option.
Since 5.0 of
Products.ZCatalog
querying fails with aValueError
when a a invalid option is used. See zopefoundation/Products.ZCatalog#67 for the change by @andbag. I guess before 5.0 the option would simply have been ignored in the query.In Plone 5.2rc4 this leads to a broken search:
I tried a workaround for that like this in
eea.facetednavigation.browser.app.query.FacetedQueryHandler.criteria
:That seemed to do the trick and worked with my updated instance but it would be much better to only offer this option if the index actually supports such a query.
The text was updated successfully, but these errors were encountered: