Skip to content

TASK: Use more fine-grained sanitation#60

Merged
daniellienert merged 2 commits intomasterfrom
task/change-sanitation
Jun 11, 2021
Merged

TASK: Use more fine-grained sanitation#60
daniellienert merged 2 commits intomasterfrom
task/change-sanitation

Conversation

@daniellienert
Copy link
Copy Markdown
Contributor

@daniellienert daniellienert commented Jan 18, 2021

The previously used [[:^alnum:]] strips german umlauts and valid characters of other languages which leads to strange query results.

This is more fine grained approach to sanitize the search word based on elasticsearch recommendations.

The previously used `[[:^alnum:]]` strips german umlauts and valid characters of other languages which leeds to strange query results.

This is more fine grained approach to sanitize the search word based on elasticsearch recommendations.
@daniellienert daniellienert force-pushed the task/change-sanitation branch from 8ecfe2b to 0902359 Compare January 26, 2021 14:39
Copy link
Copy Markdown
Member

@kdambekalns kdambekalns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Only… naming. Wouldn't it be better to have the class named Searchterm and have a sanitize() method on it? 🤷‍♂️ But that's rather academic, so feel free to ignore it!

@Sebobo
Copy link
Copy Markdown
Member

Sebobo commented Jan 27, 2021

Sanitation sounds a bit funny, true :)

Shouldn't the utility class take care of the whole process of turning a string into usable pieces without clutter then?

@daniellienert daniellienert merged commit b068148 into master Jun 11, 2021
@daniellienert daniellienert deleted the task/change-sanitation branch June 11, 2021 07:16
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

Successfully merging this pull request may close these issues.

3 participants