code: public function index(StoreInterface $store, FetchResources $request)
      {
          $result = $this->doSearch($store, $request);
  
          if ($this->isResponse($result)) {
              return $result;
          }
  
          return $this->reply()->content($result);
      }
docs: Index action.
  
  @param StoreInterface $store
  @param FetchResources $request
  @return Response