lib/Doctrine/ODM/CouchDB/DocumentManager.php
public function createLuceneQuery($designDocName, $viewName)
    {
        $luceneHandlerName = $this->config->getLuceneHandlerName();
        $designDoc = $this->config->getDesignDocument($designDocName);
        if ($designDoc) {
            $designDoc = new $designDoc['className']($designDoc['options']);
        }
        $query = new ODMLuceneQuery($this->couchDBClient->getHttpClient(),
            $this->couchDBClient->getDatabase(), $luceneHandlerName, $designDocName,
            $viewName, $designDoc
        );
        $query->setDocumentManager($this);
        return $query;
    }
public function createLuceneQuery($designDocName, $viewName)
    {
        $luceneHandlerName = $this->config->getLuceneHandlerName();
        $designDoc = $this->config->getDesignDocument($designDocName);
        if ($designDoc) {
            $designDoc = new $designDoc['className']($designDoc['options']);
        }
        $query = new ODMLuceneQuery($this->couchDBClient->getHttpClient(),
            $this->couchDBClient->getDatabase(), $luceneHandlerName, $designDocName,
            $viewName, $designDoc
        );
        $query->setDocumentManager($this);
        return $query;
    }
Create a CouchDB-Lucene Query.

@param string $designDocName
@param string $viewName
@return \Doctrine\ODM\CouchDB\View\ODMLuceneQuery