Daniel Hood
Well-known member
It's quite possible that this is 'as designed' but I was just wondering why this method doesn't run a delete for the content type. It only does something if you don't specify a content type.
This actually causes:
to ignore the checked box. I think it should be more like:
This actually causes:
to ignore the checked box. I think it should be more like:
PHP:
/**
* Deletes the entire search index or a particular part of it.
*
* @param string|null $contentType If specified, only deletes the index for this type
*/
public function deleteIndex($contentType = null)
{
if (!$contentType)
{
XenForo_Application::getDb()->query('TRUNCATE TABLE xf_search_index');
}
else
{
XenForo_Application::getDb()->delete('xf_search_index', 'content_type = ' . $this->_getDb()->quote($contentType));
}
}