usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdun...@apache.org
Subject [1/3] usergrid git commit: Fix doc for setting the collection _settings
Date Fri, 15 Dec 2017 17:44:37 GMT
Repository: usergrid
Updated Branches:
  refs/heads/master a88a87527 -> bd2385d76


Fix doc for setting the collection _settings


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/ff933943
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/ff933943
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/ff933943

Branch: refs/heads/master
Commit: ff9339438a976310c58e9bcf69b2b91af7647f36
Parents: 893a04d
Author: Mike Dunker <mdunker@google.com>
Authored: Thu Oct 26 13:08:17 2017 -0700
Committer: Mike Dunker <mdunker@google.com>
Committed: Thu Oct 26 13:08:17 2017 -0700

----------------------------------------------------------------------
 docs/data-storage/collections.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/ff933943/docs/data-storage/collections.md
----------------------------------------------------------------------
diff --git a/docs/data-storage/collections.md b/docs/data-storage/collections.md
index 88ffc55..36bb56e 100644
--- a/docs/data-storage/collections.md
+++ b/docs/data-storage/collections.md
@@ -119,7 +119,7 @@ you can tell Usergrid to completely skip indexing for a collection.
 There are three ways to specify a schema for a Collection. 
 You can specify that all fields are to be index, you can specify none or 
 you can specify a list of the fields that should be indexed. 
-You do this by POSTing or PUTing a _settings resource for the Collection with one field named
"fields".
+You do this by POSTing a _settings resource for the Collection with one field named "fields".
 
 There are three possible values for "fields":
 
@@ -134,7 +134,7 @@ Fields Setting                 Type     Meaning
 
 This example shows how you would use curl to set the schema if you want to turn off indexing
for a collection:
 
-	curl -X PUT "0:8080/test-organization/settingstest/_settings?access_token=YWM..." -d '{"fields":"none"}'
+	curl -X POST "0:8080/test-organization/settingstest/_settings?access_token=YWM..." -d '{"fields":"none"}'
 	{
 	  "action" : "put",
 	  "application" : "7fd6c414-2cb6-11e6-8b07-0a669fe1d66e",
@@ -163,7 +163,7 @@ This example shows how you would use curl to set the schema if you want
to turn
 
 This example shows how you would use curl to set the schema if you only want the "year" field
to be indexed:
 
-	curl -X PUT "0:8080/test-organization/settingstest/_settings?access_token=YWM..." -d '{"fields":["year"]}'
+	curl -X POST "0:8080/test-organization/settingstest/_settings?access_token=YWM..." -d '{"fields":["year"]}'
 	{
 	  "action" : "put",
 	  "application" : "7fd6c414-2cb6-11e6-8b07-0a669fe1d66e",
@@ -395,4 +395,4 @@ Response:
       "applicationName" : "your-app"
     }
     
-    
\ No newline at end of file
+    


Mime
View raw message