Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Merge branch 'asf-site'
Browse files Browse the repository at this point in the history
* asf-site:
  Fix doc for setting the collection _settings
  • Loading branch information
mdunker committed Dec 15, 2017
2 parents a88a875 + ff93394 commit c2a0303
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/data-storage/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -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":

Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -395,4 +395,4 @@ Response:
"applicationName" : "your-app"
}



1 comment on commit c2a0303

@ankur-compro
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mdunker

Should you mention "application" too in sample url. For example,
curl -X POST "0:8080/test-organization/test-application/settingstest/_settings?access_token=YWM..." -d '{"fields":"none"}'

This will be more clear to first time users of feature Setting up Selective Indexing via Collection Settings.
Please suggest.

Regards
Ankur

Please sign in to comment.