Repository: usergrid Updated Branches: refs/heads/asf-site 893a04ddc -> ff9339438
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/asf-site Commit: ff9339438a976310c58e9bcf69b2b91af7647f36 Parents: 893a04d Author: Mike Dunker <[email protected]> Authored: Thu Oct 26 13:08:17 2017 -0700 Committer: Mike Dunker <[email protected]> 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 +
