includes/search.php
changeset 371 dc6026376919
parent 340 993fb077944f
child 387 92664d2efab8
equal deleted inserted replaced
370:b251818286b1 371:dc6026376919
    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) || strlen($w) > 63)
    78         if(strlen($w) < 2 || in_array($w, $stopwords) || strlen($w) > 63 || preg_match('/[\']{2,}/', $w))
    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);