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

Default munge_search_term method still used for AJAX search #31

Open
ewohnlich opened this issue Jul 13, 2017 · 0 comments
Open

Default munge_search_term method still used for AJAX search #31

ewohnlich opened this issue Jul 13, 2017 · 0 comments

Comments

@ewohnlich
Copy link
Contributor

I see that the @@search view (CMFPlone.browser.search.Search) is updated for the IElasticSearchLayer by having the munge_search_term method just return the original query. But @@ajax-search ((CMFPlone.browser.search.AjaxSearch) subclasses CMFPlone.browser.search.Search not collective.elasticsearch.browser.search.Search, so it's still munging in a way that doesn't get expected behavior from elasticsearch.

I'm not sure what the best approach is but I think you need to either 1) monkey patch it instead (I think that works?) or 2) also update the view for @@ajax-search

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

1 participant