includes/search.php
changeset 339 5d62ef764b0d
parent 322 5f1cd51bf1be
child 340 993fb077944f
equal deleted inserted replaced
338:915d399dfdbf 339:5d62ef764b0d
    73       }
    73       }
    74       $letters = implode('', $letters);
    74       $letters = implode('', $letters);
    75       $words = explode(' ', $letters);
    75       $words = explode(' ', $letters);
    76       foreach($words as $c => $w)
    76       foreach($words as $c => $w)
    77       {
    77       {
    78         if(strlen($w) < 2 || in_array($w, $stopwords))
    78         if(strlen($w) < 2 || in_array($w, $stopwords) || strlen($w) > 63)
    79           unset($words[$c]);
    79           unset($words[$c]);
    80         else
    80         else
    81           $words[$c] = $w;
    81           $words[$c] = $w;
    82       }
    82       }
    83       $words = array_values($words);
    83       $words = array_values($words);