mysql> SELECT * FROM productnotes; +---------+---------+---------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | note_id | prod_id | note_date | note_text | +---------+---------+---------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | 101 | TNT2 | 2005-08-17 00:00:00 | Customer complaint:Sticks not individually wrapped, too easy to mistakenly detonate all at once.Recommend individual wrapping. | | 102 | OL1 | 2005-08-18 00:00:00 | Can shipped full, refills not available.Need to order new can if refill needed. | | 103 | SAFE | 2005-08-18 00:00:00 | Safe is combination locked, combination not provided with safe.This is rarely a problem as safes are typically blown up or dropped by customers. | | 104 | FC | 2005-08-1900:00:00 | Quantity varies, sold by the sack load.All guaranteed to be bright and orange, and suitable foruseas rabbit bait. | | 105 | TNT2 | 2005-08-2000:00:00 | Included fuses areshortand have been known to detonate too quickly forsome customers.Longer fuses are available (item FU1) and should be recommended. | | 106 | TNT2 | 2005-08-2200:00:00 | Matches not included, recommend purchase of matches or detonator (item DTNTR). | | 107 | SAFE | 2005-08-2300:00:00 | Please note that noreturns will be accepted ifsafe opened using explosives. | | 108 | ANV01 | 2005-08-2500:00:00 | Multiple customer returns, anvils failing todropfast enough or falling backwards on purchaser. Recommend that customer considers using heavier anvils. | | 109 | ANV03 | 2005-09-0100:00:00 | Item is extremely heavy. Designed for dropping, not recommended forusewith slings, ropes, pulleys, or tightropes. | | 110 | FC | 2005-09-0100:00:00 | Customer complaint: rabbit has been able to detect trap, food apparently less effective now. | | 111 | SLING | 2005-09-0200:00:00 | Shipped unassembled, requires common tools (including oversized hammer). | | 112 | SAFE | 2005-09-0200:00:00 | Customer complaint:Circular hole insafefloor can apparently be easily cut with handsaw. | | 113 | ANV01 | 2005-09-0500:00:00 | Customer complaint:Not heavy enough to generate flying stars around headof victim. If being purchased for dropping, recommend ANV02 or ANV03 instead. | | 114 | SAFE | 2005-09-0700:00:00 | Callfrom individual trapped insafe plummeting to the ground, suggests an escape hatch be added.Comment forwarded to vendor. | +---------+---------+---------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ 14rowsinset (0.00 sec)
mysql> SELECT note_text FROM productnotes WHERE Match(note_text) Against('rabbit'); +----------------------------------------------------------------------------------------------------------------------+ | note_text | +----------------------------------------------------------------------------------------------------------------------+ | Customer complaint: rabbit has been able to detect trap, food apparently less effective now. | | Quantity varies, sold by the sack load.All guaranteed to be bright and orange, and suitable foruseas rabbit bait. | +----------------------------------------------------------------------------------------------------------------------+ 2rowsinset (0.01 sec)
mysql> SELECT note_text FROM productnotes WHERE note_text LIKE '%rabbit%'; +----------------------------------------------------------------------------------------------------------------------+ | note_text | +----------------------------------------------------------------------------------------------------------------------+ | Quantity varies, sold by the sack load.All guaranteed to be bright and orange, and suitable foruseas rabbit bait. | | Customer complaint: rabbit has been able to detect trap, food apparently less effective now. | +----------------------------------------------------------------------------------------------------------------------+ 2rowsinset (0.00 sec)
mysql> SELECT note_text, Match(note_text) Against('rabbit') AS ranking FROM productnotes; +-----------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------+ | note_text | ranking | +-----------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------+ | Customer complaint:Sticks not individually wrapped, too easy to mistakenly detonate all at once.Recommend individual wrapping. | 0 | | Can shipped full, refills not available.Need to order new can if refill needed. | 0 | | Safe is combination locked, combination not provided with safe.This is rarely a problem as safes are typically blown up or dropped by customers. | 0 | | Quantity varies, sold by the sack load.All guaranteed to be bright and orange, and suitable foruseas rabbit bait. | 1.5905543565750122 | | Included fuses areshortand have been known to detonate too quickly forsome customers.Longer fuses are available (item FU1) and should be recommended. | 0 | | Matches not included, recommend purchase of matches or detonator (item DTNTR). | 0 | | Please note that noreturns will be accepted ifsafe opened using explosives. | 0 | | Multiple customer returns, anvils failing todropfast enough or falling backwards on purchaser. Recommend that customer considers using heavier anvils. | 0 | | Item is extremely heavy. Designed for dropping, not recommended forusewith slings, ropes, pulleys, or tightropes. | 0 | | Customer complaint: rabbit has been able to detect trap, food apparently less effective now. | 1.6408053636550903 | | Shipped unassembled, requires common tools (including oversized hammer). | 0 | | Customer complaint:Circular hole insafefloor can apparently be easily cut with handsaw. | 0 | | Customer complaint:Not heavy enough to generate flying stars around headof victim. If being purchased for dropping, recommend ANV02 or ANV03 instead. | 0 | | Callfrom individual trapped insafe plummeting to the ground, suggests an escape hatch be added.Comment forwarded to vendor. | 0 | +-----------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------+ 14rowsinset (0.00 sec)