I\'m trying to write a query to search for a record using a wild card.
I have two queries below which works but I like to know which one of the is more optimise.
Query one does gives me what i'm looking for but query two gives me different results.
WHERE name LIKE '%County Down%'
WHERE match( name ) AGAINST ( '%County Down%' IN BOOLEAN MODE )
The first query will return results for "LACounty Down" and "NYCounty Down", but the second query will not return these results. Both queries will return results like "LA County Down" and "NY County Down," though.
To make the results match and to have it return these "fuzzy match" results, change your second query to...
WHERE match( name ) AGAINST ( '*County Down*' IN BOOLEAN MODE )