2014-09-28, 04:26 PM
The following piece of code seems wrong:
I had to manually set the FULLTEXT search for thread subjects because it wasn't being updated when modifying the setting.
// Check if we need to create our fulltext index after changing the search mode
if($mybb->settings['searchtype'] != $mybb->input['upsetting']['searchtype'] && $mybb->input['upsetting']['searchtype'] == "fulltext")
{
if(!$db->is_fulltext("posts") && $db->supports_fulltext_boolean("posts"))
{
$db->create_fulltext_index("posts", "message");
}
if(!$db->is_fulltext("posts") && $db->supports_fulltext("threads"))
{
$db->create_fulltext_index("threads", "subject");
}
}
I had to manually set the FULLTEXT search for thread subjects because it wasn't being updated when modifying the setting.