Permalink
Browse files

mention that you can return Document[] from an index function.

  • Loading branch information...
1 parent d5ce6bf commit 4c21806edfb6e8d398111c1ea50d19d502db7149 Robert Newson committed Jul 15, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -37,7 +37,7 @@ _fti = {couch_httpd_external, handle_external_req, <<"fti">>}
<h2>Document Indexing</h2>
-You must supply a index function in order to enable couchdb-lucene as, by default, nothing will be indexed.
+You must supply a index function in order to enable couchdb-lucene as, by default, nothing will be indexed. To suppress a document from the index, return null. It's more typical to return a single Document object which contains everything you'd like to query and retrieve. You may also return an array of Document objects if you wish.
You may add any number of index views in any number of design documents. All searches will be constrained to documents emitted by the index functions.

0 comments on commit 4c21806

Please sign in to comment.