-
Notifications
You must be signed in to change notification settings - Fork 203
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
EZP-31248: Fixed handling non-printable characters for Search #2904
Conversation
@kmadejski is this overlapping with the PR you proposed perhaps? |
@hgiesenow thanks for your contribution! @andrerom yes, it seems to cover also what I've tried to achieve in my PR. This is also probably what @gggeek had in mind in ezsystems/ezplatform-solr-search-engine#159 (comment). @hgiesenow could you please double-check whether it for sure covers what has been described in this ticket: https://jira.ez.no/browse/EZP-30759? |
Maybe :-) I don't remember the details. Otoh I think that some of the chars that are trimmed-away at the moment (both before and with this PR) should not be replaced with no-char but with a space instead. Esp. tab, vertical-tab, form-feed could conceivably be used to separate two words. If we strip them out, we'd be joining those words together... possibly chars 1C-1E as well |
Hi @hgiesenow, do you need any help with this PR? 🙂 |
Hi @kmadejski, @gggeek - I pushed a commit that handles tabs, horizontal tabs and form feed, so they are replaced with space. Can you please give your review (for some reason I can't add you to reviewers)? |
better :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, but should go to 6.13 and up on merge
eZ/Publish/Core/Search/Common/FieldValueMapper/StringMapper.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 but I'm missing tests 😉
@adamwojs had some problems with those, but should be ok now 😉 |
Co-Authored-By: Andrew Longosz <[email protected]>
Co-Authored-By: Andrew Longosz <[email protected]>
Co-Authored-By: Andrew Longosz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA approved on eZ Platform EE 2.5 with diff.
Merged for eZ Platform Thank you @hgiesenow and @mateuszbieniek 🎉 |
7.x
Replaces all special chracaters to avoid issues with SolR
TODO:
$ composer fix-cs
).