original_string: public function getSlice($offset, $length)
      {
          $query = clone $this->query;
          $query->offset = $offset;
          $query->limit = $length;
          $query->performCount = false;
  
          $searchResult = $this->filterService->filterContent($query);
  
          // Set count for further use if returned by search engine despite !performCount (Solr, ES)
          if (null === $this->nbResults && null !== $searchResult->totalCount) {
              $this->nbResults = $searchResult->totalCount;
          }
  
          $list = [];
          foreach ($searchResult->searchHits as $hit) {
              $list[] = $hit->valueObject;
          }
  
          return $list;
      }
code: public function getSlice($offset, $length)
      {
          $query = clone $this->query;
          $query->offset = $offset;
          $query->limit = $length;
          $query->performCount = false;
  
          $searchResult = $this->filterService->filterContent($query);
  
          // Set count for further use if returned by search engine despite !performCount (Solr, ES)
          if (null === $this->nbResults && null !== $searchResult->totalCount) {
              $this->nbResults = $searchResult->totalCount;
          }
  
          $list = [];
          foreach ($searchResult->searchHits as $hit) {
              $list[] = $hit->valueObject;
          }
  
          return $list;
      }
code_tokens: public function getSlice ( $ offset , $ length ) { $ query = clone $ this -> query ; $ query -> offset = $ offset ; $ query -> limit = $ length ; $ query -> performCount = false ; $ searchResult = $ this -> filterService -> filterContent ( $ query ) ; // Set count for further use if returned by search engine despite !performCount (Solr, ES) if ( null === $ this -> nbResults && null !== $ searchResult -> totalCount ) { $ this -> nbResults = $ searchResult -> totalCount ; } $ list = [ ] ; foreach ( $ searchResult -> searchHits as $ hit ) { $ list [ ] = $ hit -> valueObject ; } return $ list ; }
docstring: Returns a slice of the results, as Site Content objects.
  
  @param int $offset The offset
  @param int $length The length
  
  @return \Netgen\EzPlatformSiteApi\API\Values\Location[]
docstring_tokens: Returns a slice of the results as Site Content objects .