I have a table which contains around a million record of vehicles. I want to implement search functionality so that user can make search on vehicle, unfortunately FULLTEXT column contains data like...
"Motor Car Fortuner-GJ00XX1234-Toyota"
"Motor Car Fortuner-GJ00XX04567-Toyota"
etc.....
This means the particular record is for "motor car" model "fortuner" with registration number "GJ00XX1234" and company name "toyota".
Users trying to search "fortuner 1234" OR "1234" as generally user doesn't remember full registration number. As a result MySql returns all records with "fortuner" but it cannot search "1234". However searching "GJ00XX1234" works.
I know using "LIKE '%1234%'" query works but there's a performance issue so I have to achieve this using FULLTEXT only.
Can someone guide me how to achieve it without modifying data? Thanks.