public function deleteFromIndex()
    {
        $all = $this->all();

        $params = array();

        foreach ($all as $item) {
            $params['body'][] = array(
                'delete' => array(
                    '_id' => $item->getKey(),
                    '_type' => $item->getTypeName(),
                    '_index' => $item->getIndexName(),
                ),
            );
        }

        return $this->getElasticSearchClient()->bulk($params);
    }
public function deleteFromIndex()
    {
        $all = $this->all();

        $params = array();

        foreach ($all as $item) {
            $params['body'][] = array(
                'delete' => array(
                    '_id' => $item->getKey(),
                    '_type' => $item->getTypeName(),
                    '_index' => $item->getIndexName(),
                ),
            );
        }

        return $this->getElasticSearchClient()->bulk($params);
    }
public function deleteFromIndex ( ) { $ all = $ this -> all ( ) ; $ params = array ( ) ; foreach ( $ all as $ item ) { $ params [ 'body' ] [ ] = array ( 'delete' => array ( '_id' => $ item -> getKey ( ) , '_type' => $ item -> getTypeName ( ) , '_index' => $ item -> getIndexName ( ) , ) , ) ; } return $ this -> getElasticSearchClient ( ) -> bulk ( $ params ) ; }
Delete From Index

@return array
Delete From Index