I'm using a match against query in boolean mode to create a search feature. The search works, and returns results how I would expect them to, except that there is one problem with words with apostrophes in them.
If there is a word saved on the database with an apostrophe in it (pirate's for example) and you search for the word with the apostrophe in it, or without the end of the word (pirate's or pirate for example) it returns results, however if i search the word without the apostrophe (pirates) it returns no results.
I've tried changing the record in the database to be escaped and not escaped, and I can't seem to find a way to fix it.
I have also spend a while searching for simular answers, but none have the same problem as this, they seem to be more about returning results for a search without the apostrophe and the s.
My query is:
SELECT * FROM flyer WHERE MATCH(band, venue, promoter) AGAINST('$search' IN BOOLEAN MODE)