Class: AzureSearch::IndexBatchOperation
- Inherits:
-
Object
- Object
- AzureSearch::IndexBatchOperation
- Defined in:
- lib/azure_search/index_batch_operation.rb
Overview
Represents a batch operation in an indexing request.
Direct Known Subclasses
Class Method Summary collapse
-
.delete(key_name, key_value) ⇒ Object
Encapsulates a delete request in an IndexDeleteOperation.
-
.upload(document) ⇒ Hash
Encapsulates the supplied document in an IndexUploadOperation.
Class Method Details
.delete(key_name, key_value) ⇒ Object
Encapsulates a delete request in an IndexDeleteOperation.
19 20 21 |
# File 'lib/azure_search/index_batch_operation.rb', line 19 def self.delete(key_name, key_value) IndexDeleteOperation.new(key_name, key_value).to_hash end |
.upload(document) ⇒ Hash
Encapsulates the supplied document in an IndexUploadOperation.
11 12 13 |
# File 'lib/azure_search/index_batch_operation.rb', line 11 def self.upload(document) IndexUploadOperation.new(document).to_hash end |