includes/search.php
changeset 266 5d62ef764b0d
parent 261 5f1cd51bf1be
child 285 e72bf2c24875
equal deleted inserted replaced
265:915d399dfdbf 266: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);