Permalink
Browse files

added parameters to createLuceneQuery() method description

  • Loading branch information...
1 parent 6445f61 commit a162ea1da700ad0f176ece3ae5b1999cf5c29e87 @janpieper janpieper committed Nov 3, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 en/reference/lucene-queries.rst
@@ -36,14 +36,14 @@ You can use the design-doc API of Doctrine, for example:
You can use the CouchDB Client to create the design document for this lucene view.
When you have created a CouchDB Lucene view you can query it with Doctrine using
-the ``DocumentManager#createLuceneQuery`` method. A lucene query instance extends
-``AbstractQuery`` like the Doctrine CouchDB Map-Reduce queries.
+the ``DocumentManager#createLuceneQuery($designDocName, $viewName)`` method. A lucene
+query instance extends ``AbstractQuery`` like the Doctrine CouchDB Map-Reduce queries.
An example showing all the functionalities of a lucene query looks like:
.. code-block:: php
- $query = $dm->createLuceneQuery("designName", "viewName");
+ $query = $dm->createLuceneQuery("designDocName", "viewName");
$result = $query->setQuery("+bar -foo")
->setSkip(20)
->setLimit(100)

0 comments on commit a162ea1

Please sign in to comment.