public function reindexImportedCategories()
    {
        switch ($this->getBehavior()) {
            case Import::BEHAVIOR_DELETE:
                $this->indexDeleteEvents();
                break;
            case Import::BEHAVIOR_REPLACE:
            case Import::BEHAVIOR_APPEND:
            case Import::BEHAVIOR_ADD_UPDATE:

                $this->reindexUpdatedCategories();
                break;
            default:
                throw new \Exception('Unsupported Mode!');
                break;
        }
        return $this;
    }
public function reindexImportedCategories()
    {
        switch ($this->getBehavior()) {
            case Import::BEHAVIOR_DELETE:
                $this->indexDeleteEvents();
                break;
            case Import::BEHAVIOR_REPLACE:
            case Import::BEHAVIOR_APPEND:
            case Import::BEHAVIOR_ADD_UPDATE:

                $this->reindexUpdatedCategories();
                break;
            default:
                throw new \Exception('Unsupported Mode!');
                break;
        }
        return $this;
    }
public function reindexImportedCategories ( ) { switch ( $ this -> getBehavior ( ) ) { case Import :: BEHAVIOR_DELETE : $ this -> indexDeleteEvents ( ) ; break ; case Import :: BEHAVIOR_REPLACE : case Import :: BEHAVIOR_APPEND : case Import :: BEHAVIOR_ADD_UPDATE : $ this -> reindexUpdatedCategories ( ) ; break ; default : throw new \ Exception ( 'Unsupported Mode!' ) ; break ; } return $ this ; }
Partially reindex newly created and updated categories

@return $this
Partially reindex newly created and updated categories