mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
Remove non-alphanumerics (except quotes) from search query
That is, don't replace non-alphanumerics with a space. This matches the behavior of Formatter::RemoveDiacriticsAndNonalphanumerics(), which would be used here except that function would also remove quotes. We actually discussed not introducing spaces previously, but I made a mistake and didn't apply the same change to the user's search query: https://github.com/standardebooks/web/pull/470#discussion_r1929591492 This change fixes queries with compound words like: `Haycraft-Queen` and also fixes queries for authors with apostrophes: `O'Neill` No changes to existing DBs are necessary because they already have terms like `haycraftqueen` and `oneill` stored in `IndexableCollections` and `IndexableAuthors`.
This commit is contained in:
parent
dab857d127
commit
8a4da08a66
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue