CSCI 470 |
ft_stopword_file = "" ft_min_word_len = 1 innodb_ft_min_token_size = 1 innodb_ft_enable_stopword = 0On my VM, the config file is located at /etc/mysql/mf.cnf. Note: you will need to restart MySQL and also reload the table containing the full-text index for this change to take effect.
// Return an array of quotes based on the given set of search word(s), limit to max total quotations function getQuotes($search, $max) // Return an array of the most frequent commands given the current prefix, limit to at most max results. // If sessionID is set, include up to sessionMax results that are personalized based on the sessionID. function getTopMatches($prefix, $max, $sessionID = "", $sessionMax = 0) // Return an array of the newest searches, limit to at most max results function getTopRecentMatches($max) // Add a new search to the database from a user with the given ip and sessionID function addSearch($search, $ip, $sessionID) // Add/change rating for the quote identified by quoteID for user identified by sessionID // score is the star rating: 1, 2, 3, 4 or 5. function rateQuote($sessionID, $quoteID, $score) // Return the average score of this quote, "" if no score for the quote yet. // If sessionID not "", we return current score set by this user. function getQuoteScore($quoteID, $sessionID = "") // Deletes searches from the database, if sessionID is set only delete entries for that sessionID function deleteSearches($sessionID = "") // Deletes ratings from the database, if sessionID is set only delete entries for that sessionID function deleteRatings($sessionID = "")
Page last updated: April 01, 2015