X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?p=living-lab-site.git;a=blobdiff_plain;f=application%2Fmodels%2Fvideos_model.php;fp=application%2Fmodels%2Fvideos_model.php;h=afcfd3d93fc755654d5a3eca5d0ae24e25b559f0;hp=711b967a0930f36f0a01b4c9d00a0a28891d7bd1;hb=007060953ce46eb7da637ee5fb6eb44c5812d74f;hpb=c7b70f31aa7d34d184c20ac6258fec2174ea8d67 diff --git a/application/models/videos_model.php b/application/models/videos_model.php index 711b967..afcfd3d 100644 --- a/application/models/videos_model.php +++ b/application/models/videos_model.php @@ -471,7 +471,7 @@ class Videos_model extends CI_Model { // Search word fragments. // sfc = search fragment condition $sfc = "( "; - // sfr = serach fragment relevation + // sfr = search fragment relevance $sfr = "( "; $sep = ' +-*<>()~"'; $fragm = strtok($search_query, $sep); @@ -481,7 +481,7 @@ class Videos_model extends CI_Model { OR description LIKE '%$fragm%' OR tags LIKE '%$fragm%') OR "; - // Frament relevations are half of boolean relevations such + // Frament relevances are half of boolean relevances such // that they will appear at the end of the results. $sfr .= "0.25 * (title LIKE '%$fragm%') + 0.1 * (description LIKE '%$fragm%')