etianen / django-watson

Full-text multi-table search application for Django. Easy to install and use, with good performance.
BSD 3-Clause "New" or "Revised" License
1.21k stars 129 forks source link

Escape '@' on MySQL #257

Open wiedi opened 5 years ago

wiedi commented 5 years ago

The '@' character needs escaping in the MySQL backend since @distance was introduced.

Reference: https://dev.mysql.com/doc/refman/5.7/en/fulltext-boolean.html

etianen commented 5 years ago

The build seems to be failing. It looks like flake8 have updated their default ruleset, but also that unit tests are now failing. Could you address these issues please?

wiedi commented 5 years ago

The test fails because a search for 'abcd@efgh' will now actually search for 'abcd efgh'.

I'll see if I can fix this by improving the escape function to handle this better.