original_string: protected function get_indexed_files($document, $start = 0, $rows = 500) {
          // Build a custom query that will get any document files that are in our solr_filegroupingid.
          $query = new \SolrQuery();
  
          // We want to get all file records tied to a document.
          // For efficiency, we are building our own, stripped down, query.
          $query->setQuery('*');
          $query->setRows($rows);
          $query->setStart($start);
          // We want a consistent sorting.
          $query->addSortField('id');
  
          // We only want the bare minimum of fields.
          $query->addField('id');
          $query->addField('modified');
          $query->addField('title');
          $query->addField('solr_fileid');
          $query->addField('solr_filecontenthash');
          $query->addField('solr_fileindexstatus');
  
          $query->addFilterQuery('{!cache=false}solr_filegroupingid:(' . $document->get('id') . ')');
          $query->addFilterQuery('type:' . \core_search\manager::TYPE_FILE);
  
          $response = $this->get_query_response($query);
          if (empty($response->response->numFound)) {
              return array(0, array());
          }
  
          return array($response->response->numFound, $this->convert_file_results($response));
      }
code: protected function get_indexed_files($document, $start = 0, $rows = 500) {
          // Build a custom query that will get any document files that are in our solr_filegroupingid.
          $query = new \SolrQuery();
  
          // We want to get all file records tied to a document.
          // For efficiency, we are building our own, stripped down, query.
          $query->setQuery('*');
          $query->setRows($rows);
          $query->setStart($start);
          // We want a consistent sorting.
          $query->addSortField('id');
  
          // We only want the bare minimum of fields.
          $query->addField('id');
          $query->addField('modified');
          $query->addField('title');
          $query->addField('solr_fileid');
          $query->addField('solr_filecontenthash');
          $query->addField('solr_fileindexstatus');
  
          $query->addFilterQuery('{!cache=false}solr_filegroupingid:(' . $document->get('id') . ')');
          $query->addFilterQuery('type:' . \core_search\manager::TYPE_FILE);
  
          $response = $this->get_query_response($query);
          if (empty($response->response->numFound)) {
              return array(0, array());
          }
  
          return array($response->response->numFound, $this->convert_file_results($response));
      }
code_tokens: protected function get_indexed_files ( $ document , $ start = 0 , $ rows = 500 ) { // Build a custom query that will get any document files that are in our solr_filegroupingid. $ query = new \ SolrQuery ( ) ; // We want to get all file records tied to a document. // For efficiency, we are building our own, stripped down, query. $ query -> setQuery ( '*' ) ; $ query -> setRows ( $ rows ) ; $ query -> setStart ( $ start ) ; // We want a consistent sorting. $ query -> addSortField ( 'id' ) ; // We only want the bare minimum of fields. $ query -> addField ( 'id' ) ; $ query -> addField ( 'modified' ) ; $ query -> addField ( 'title' ) ; $ query -> addField ( 'solr_fileid' ) ; $ query -> addField ( 'solr_filecontenthash' ) ; $ query -> addField ( 'solr_fileindexstatus' ) ; $ query -> addFilterQuery ( '{!cache=false}solr_filegroupingid:(' . $ document -> get ( 'id' ) . ')' ) ; $ query -> addFilterQuery ( 'type:' . \ core_search \ manager :: TYPE_FILE ) ; $ response = $ this -> get_query_response ( $ query ) ; if ( empty ( $ response -> response -> numFound ) ) { return array ( 0 , array ( ) ) ; } return array ( $ response -> response -> numFound , $ this -> convert_file_results ( $ response ) ) ; }
docstring: Get the currently indexed files for a particular document, returns the total count, and a subset of files.
  
  @param document $document
  @param int      $start The row to start the results on. Zero indexed.
  @param int      $rows The number of rows to fetch
  @return array   A two element array, the first is the total number of availble results, the second is an array
  of documents for the current request.
docstring_tokens: Get the currently indexed files for a particular document returns the total count and a subset of files .