azure-cosmos-js/samples/IndexManagement
Christopher Anderson a908af7cba
Change all string enum properties to keyof typof enum properties (#86)
fixes https://github.com/Azure/azure-cosmos-js/issues/72
2018-07-31 11:59:16 -07:00
..
README.md - Changed all occurances of "DocumentDB" to "Cosmos DB" in comments 2017-12-13 18:23:59 -08:00
app.js Change all string enum properties to keyof typof enum properties (#86) 2018-07-31 11:59:16 -07:00
package.json Update samples to new OM (#79) 2018-07-30 16:39:34 -07:00

README.md

While Azure Cosmos DB automatically indexes all paths of all documents in a consistent manner, you have the ability to tweak and customize this behavior should you need (or want) to.

Samples for working with Azure Cosmos DB IndexPolicy on a Collection

  1. explictlyExcludeFromIndex - how to manually exclude a document from being indexed
  2. useManualIndexing - switch auto indexing off, and then manually add individual docs
  3. useLazyIndexing - create a collection with indexing mode set to Lazy instead of consistent
  4. forceScanOnHashIndexPath - use a directive to allow a scan on a string path during a range operation
  5. useRangeIndexOnStrings - create a range index on string path
  6. excludePathsFromIndex - create a custom indexPolicy that excludes specific path in document
  7. performIndexTransforms - create a collection with default indexPolicy, then update this online
  8. waitForIndexTransforms - waits for index transform to complete by repeatedly doing a readCollection checking and checking headers