public function purgeIndex()
    {
        $endpoints = $this->endpointResolver->getEndpoints();

        foreach ($endpoints as $endpointName) {
            $this->purgeEndpoint(
                $this->endpointRegistry->getEndpoint($endpointName)
            );
        }
    }
public function purgeIndex()
    {
        $endpoints = $this->endpointResolver->getEndpoints();

        foreach ($endpoints as $endpointName) {
            $this->purgeEndpoint(
                $this->endpointRegistry->getEndpoint($endpointName)
            );
        }
    }
public function purgeIndex ( ) { $ endpoints = $ this -> endpointResolver -> getEndpoints ( ) ; foreach ( $ endpoints as $ endpointName ) { $ this -> purgeEndpoint ( $ this -> endpointRegistry -> getEndpoint ( $ endpointName ) ) ; } }
@todo implement purging for document type

Purges all contents from the index
@todo implement purging for document type