Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: John Robinson
I don't know if this was asked (if it was, just tell me and I'll find it in the thread) but what criteria did you use for 'order by relevance'?
58 posted on 12/07/2001 7:31:11 PM PST by WIMom
[ Post Reply | Private Reply | To 1 | View Replies ]


To: WIMom
MySQL Full-text Search

"Relevance is computed based on the number of words in the row, the number of unique words in that row, the total number of words in the collection, and the number of documents (rows) that contain a particular word."

"Every correct word in the collection and in the query is weighted, according to its significance in the query or collection. This way, a word that is present in many documents will have lower weight (and may even have a zero weight), because it has lower semantic value in this particular collection. Otherwise, if the word is rare, it will receive a higher weight. The weights of the words are then combined to compute the relevance of the row."

Also, "MySQL uses a very simple parser to split text into words. A ``word'' is any sequence of letters, numbers, `'', and `_'. Any ``word'' that is present in the stopword list or just too short (3 characters or less) is ignored."

68 posted on 12/07/2001 8:26:13 PM PST by John Robinson
[ Post Reply | Private Reply | To 58 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson