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);
    }
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);
    }
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 ) ; }
Checks the schema is properly set up.

@throws \moodle_exception
@return void
Checks the schema is properly set up .