original_string: public function validate_setup() {
          $fields = \search_solr\document::get_default_fields_definition();
  
          // Field id is already there.
          unset($fields['id']);
  
          $this->check_index();
          $this->validate_fields($fields, true);
      }
code: public function validate_setup() {
          $fields = \search_solr\document::get_default_fields_definition();
  
          // Field id is already there.
          unset($fields['id']);
  
          $this->check_index();
          $this->validate_fields($fields, true);
      }
code_tokens: public function validate_setup ( ) { $ fields = \ search_solr \ document :: get_default_fields_definition ( ) ; // Field id is already there. unset ( $ fields [ 'id' ] ) ; $ this -> check_index ( ) ; $ this -> validate_fields ( $ fields , true ) ; }
docstring: Checks the schema is properly set up.
  
  @throws \moodle_exception
  @return void
docstring_tokens: Checks the schema is properly set up .