Commands: What are the commands?

Commands are a set of low level operations that can be used to manipulate data and change configuration on a server.

They are available in DocumentStore under getDatabaseCommands().

IDatabaseCommands commands = store.getDatabaseCommands();

Document commands

The following commands can be used to manipulate documents:
- put
- get
- getDocuments
- multiGet
- startsWith
- head
- delete
- deleteByIndex
- updateByIndex
- streamDocs

Index commands

The following commands can be used to manipulate indexes:
- putIndex
- getIndex
- getIndexes
- getIndexNames
- getIndexMergeSuggestions
- deleteIndex
- resetIndex
- IndexHasChanged
- SetIndexLock
- SetIndexPriority

Transformer commands

The following commands can be used to manipulate transformers:
- putTransformer
- getTransformer
- getTransformers
- deleteTransformer

Attachment commands

The following commands can be used to manipulate attachments:
- putAttachment
- getAttachment
- getAttachments
- headAttachment
- getAttachmentHeadersStartingWith
- deleteAttachment
- updateAttachmentMetadata

Patch commands

The following commands can be used to patch:
- patch

Query commands

The following commands can be used to query:
- query
- streamQuery

Batch commands

The following commands can be used to send commands in a batch:
- batch

Administrative commands

The following commands can be used to perform administrative tasks on a server:
- createDatabase
- deleteDatabase
- compactDatabase
- getStatistics
- startBackup
- startRestore
- stopIndexing
- startIndexing
- getIndexingStatus