src/ngrest/base/Api.php
public function actionSearch($query = null)
    {
        $this->checkAccess('search');
        
        if (empty($query)) {
            $query = Yii::$app->request->post('query');
        }
        
        $find = $this->model->ngRestFullQuerySearch($query);
        
        return new ActiveDataProvider([
            'query' => $find->with($this->getWithRelation('search')),
            'pagination' => $this->pagination,
            'sort' => [
                'attributes' => $this->generateSortAttributes($this->model->getNgRestConfig()),
            ]
        ]);
    }
public function actionSearch($query = null)
    {
        $this->checkAccess('search');
        
        if (empty($query)) {
            $query = Yii::$app->request->post('query');
        }
        
        $find = $this->model->ngRestFullQuerySearch($query);
        
        return new ActiveDataProvider([
            'query' => $find->with($this->getWithRelation('search')),
            'pagination' => $this->pagination,
            'sort' => [
                'attributes' => $this->generateSortAttributes($this->model->getNgRestConfig()),
            ]
        ]);
    }
public function actionSearch ( $ query = null ) { $ this -> checkAccess ( 'search' ) ; if ( empty ( $ query ) ) { $ query = Yii :: $ app -> request -> post ( 'query' ) ; } $ find = $ this -> model -> ngRestFullQuerySearch ( $ query ) ; return new ActiveDataProvider ( [ 'query' => $ find -> with ( $ this -> getWithRelation ( 'search' ) ) , 'pagination' => $ this -> pagination , 'sort' => [ 'attributes' => $ this -> generateSortAttributes ( $ this -> model -> getNgRestConfig ( ) ) , ] ] ) ; }
Generate a response with pagination disabled.

Search querys with Pagination will be handled by this action.

@param string $query The search paramter, if empty post will be used.
@return \yii\data\ActiveDataProvider
Generate a response with pagination disabled .