1
I need to return the number of occurrences closest to REGEXP, see the example below:
SELECT * FROM tabela WHERE nome_produto REGEXP 'vestido|longo|manga|curta'
The idea is that this query returns me like this
- Long Dress with Short Sleeves
- Pearly dress with short sleeves
- Líndissimo Long Dress ..
But it returns something like:
- Beautiful dress to wear in summer
- Dress-up..
Anyway, it’s not ordered by the highest number of occurrences, do you have a way to do that? This is for a simple search system I need to do..