da ich mir gerade die Textstelle angesehen habe stelle ich mal die Theorie auf, das es sich mit der Ergebnislimitierung nicht erledigen lässt, da dort wohl alle Postids die für die Suche in Frage kommen gesammelt werden und zwar alle
ich zitiere mal den Text kurz vor der Ausgabe dazu
// returns a lot of useless stuff right now -- similar threads matching only uses the scores now. I was originally
// planning on having the searching routine be a bit more complex than it is now
vielleicht hilft es nach
PHP-Code:
$posts = $vbulletin->db->query_read_slave("
SELECT postid, wordid,
CASE intitle
WHEN 0 THEN score
WHEN 1 THEN score + " . $vbulletin->options['posttitlescore'] . "
WHEN 2 THEN score + " . $vbulletin->options['threadtitlescore'] . " + " . $vbulletin->options['posttitlescore'] . "
ELSE score
END AS score
FROM " . TABLE_PREFIX . "postindex" . iif($searchthread, "
INNER JOIN " . TABLE_PREFIX . "post USING (postid)
INNER JOIN " . TABLE_PREFIX . "thread AS thread USING (threadid)") . "
WHERE $wordids $intitle
" . iif($searchthread, " AND thread.threadid = $searchthreadid")
);
while($post = $vbulletin->db->fetch_array($posts))
{
$wordlists[$post['postid']] .= " ,$post[wordid],";
$postscores[$post['postid']] += $post['score'];
}
noch ein
PHP-Code:
$vbulletin->db->free_result($posts);
einzufügen um wieder etwas speicher freizuräumen
Lesezeichen