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

Search Index Rebuild

Discussion in 'XenForo Development Discussions' started by ragtek, Aug 18, 2011.

  1. ragtek

    ragtek Guest

    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?:)
  2. ragtek

    ragtek Guest

  3. ragtek

    ragtek Guest


    In the search indexer i've found

            /* @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?

Share This Page