I have keywords like \"some-or-other\" where the hyphens matter in the search through my mysql database. I\'m currently using the fulltext function.
Is there a way
This might sound off, but after struggling with this for a while, I realised I get the results I wish for by removing the hyphen from the search expression. For instance, if I search for 'word-separated'
SELECT * FROM table WHERE MATCH(column) AGAINST ('word separated');
returns instances of 'word-separated' as needed. This also returns other instances of separated and word, but adding the + operator to each word achieves the hyphen search.
SELECT * FROM table WHERE MATCH(column) AGAINST ('+word +separated');