Doctrine\ODM\CouchDB\CouchDBException::luceneNotConfigured PHP Method

luceneNotConfigured() public static method

public static luceneNotConfigured ( )
    public static function luceneNotConfigured()
    {
        return new self("CouchDB Lucene is not configured. You have to configure the handler name to enable support for Lucene Queries.");
    }

Usage Example

Beispiel #1
0
 public function getLuceneHandlerName()
 {
     if (!$this->attributes['luceneHandlerName']) {
         throw CouchDBException::luceneNotConfigured();
     }
     return $this->attributes['luceneHandlerName'];
 }