I have a table from which i want to search.
The table is in InnoDB.
I have used
LIKE '%$keyword%' for searching but I want to short them based on relevancy of Matching.
Like for the Keyword ‘xyz’
the result should be show
as
(1) xyz abc
(2) abc xyz
currently it is showing in Alphabetical order. Is there any way by which i can short them based on relevancy?
i have also gone through the Mysql Fulltext search with other table in Myisam but that also won’t work out for small Keyword like ‘an’ it needs keyword length approx 3 to 5
add an
order byThat will order records depending on the position of the keyword in the text.