in the match – against am getting the correct results, there is no problem but the thing i want is the result combination.
Like for “computer graphics” i am getting results for “+computer +graphics” as “computer” alone results and “computer graphics” results and “graphics” results and etc.
Here i want “computer graphics” results first then the other single word match results. How can i bring those first. Help me some one please
you should order by relevance: search for the same query you use in WHERE, call is RELEVANCE and then order by that field.
SELECT MATCH(‘…’) AGAINST (‘…’) as Relevance
FROM table WHERE MATCH(‘…’) AGAINST(‘…’ IN
BOOLEAN MODE)
ORDER BY Relevance DESC