• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Search Index Rebuild

R

ragtek

Guest
#1
I've completed my Conversation Search and it's working nice for new conversations.
Because the old conversations aren't in the index, they can't be found.

Is there a way to rebuild the search index FOR ONLY 1 content type?
I know that i can rebuild all caches, but it's IMHO not necessary and the rebuild for only the conversations would/could be faster..

Is there already a usefull method/class for this?:)
 
R

ragtek

Guest
#3
*bump*

In the search indexer i've found

PHP:
        /* @var $searchModel XenForo_Model_Search */
        $searchModel = XenForo_Model::create('XenForo_Model_Search');
        $searchContentTypes = $searchModel->getSearchContentTypes();

        // TODO: potentially look at truncating the table (user option?)

        $extraData = $input['extra_data'];
        if (!isset($extraData['content_types']) || !is_array($extraData['content_types']))
        {
            $extraData['content_types'] = array_keys($searchContentTypes);
        }
which seems to be what i'm searching for, but how can i send the extra Data?