MySQL Forums
Forum List  »  Full-Text Search

Re: Full Text Search Boolean Mode
Posted by: Matthew Caruana Galizia
Date: November 22, 2007 07:04PM

Boolean MATCH will almost always return a relevance of 1, so the following query is pointless:

SELECT id, title, MATCH(title) AGAINST ('abcd efgh' IN BOOLEAN MODE) AS score FROM table_alphabet WHERE MATCH(title) AGAINST ('abcd efgh' IN BOOLEAN MODE) ORDER BY score DESC;

To have your results sorted by relevance, you need to sort them against a natural search. Remove the first IN BOOLEAN MODE.

Options: ReplyQuote


Subject
Views
Written By
Posted
6571
October 05, 2007 01:41PM
Re: Full Text Search Boolean Mode
3644
November 22, 2007 07:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.