I am finding a lot of answers on most relevant searching for text results, but not much at all on numbers. What would be the best if there were a way for the MySQL query to return results in the most relevant way for number searches. It would order by exact matches first and branch out the variable until all results were given.
EXAMPLE: Variable = 54
Results = 54,55,53,56,52,57,51...
Is there such a way to do this that anyone knows, and keep it all within a single query? I imagine if I have to that I could put the query into a php loop and just increment the number that way, returning results as they were found. But that seems rather code intensive and would cause for some lag in the results.
I saw this thread, but I am not sure this answers my question.
Thanks in advance.