You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "rnewson (via GitHub)" <gi...@apache.org> on 2023/05/04 12:46:34 UTC

[GitHub] [couchdb] rnewson commented on a diff in pull request #4572: Nouveau doc fixes

rnewson commented on code in PR #4572:
URL: https://github.com/apache/couchdb/pull/4572#discussion_r1184964593


##########
src/docs/src/ddocs/nouveau.rst:
##########
@@ -606,8 +609,8 @@ using a single ``if`` statement.
 .. code-block:: javascript
 
     if (typeof doc.town == "string" && typeof doc.name == "string") {
-        index("string", "town", doc.town);
-        index("string", "name", doc.name);
+        index("string", "town", doc.town, { facet: true });

Review Comment:
   facet:true isn't recognised, all strings and doubles are indexed for faceting now.



##########
src/docs/src/ddocs/nouveau.rst:
##########
@@ -584,13 +584,16 @@ Nouveau Search also supports faceted searching, enabling discovery of aggregate
 information about matches quickly and easily. You can match all documents by using the
 special ``?q=*:*`` query syntax, and use the returned facets to refine your query.
 
-*Example of search query:*
+*Example of faceted index:*
 
 .. code-block:: javascript
 
     function(doc) {
-        index("string", "type", doc.type);
-        index("double", "price", doc.price);
+        // not faceted
+        index("string", "email", doc.email, { facet: false })

Review Comment:
   facet:true isn't recognised, all strings and doubles are indexed for faceting now.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org