public function getDocumentEntityRepository() 
    {
    	if(isset($this->er['Document'])) {
    		return $this->er['Document'];
    	}
    	$sphinxClient = $this->getServiceManager()->get('sphinxsearch.client.default');
    	$entityRepository = $this->getEntityManager()->getRepository('Neobazaar\Entity\Document');
    	$entityRepository->setSphinxClient($sphinxClient);
    	$entityRepository->setSphinxSearch(true);
    	$entityRepository->setServiceLocator($this->getServiceManager());
    	$this->er['Document'] = $entityRepository;
    	
    	return $entityRepository;
    }