Class: AgnosticBackend::Cloudsearch::Indexer
- Inherits:
-
Indexer
- Object
- Indexer
- AgnosticBackend::Cloudsearch::Indexer
show all
- Includes:
- Utilities
- Defined in:
- lib/agnostic_backend/cloudsearch/indexer.rb
Constant Summary
collapse
- MAX_PAYLOAD_SIZE_IN_BYTES =
4_500_000
Instance Attribute Summary
Attributes inherited from Indexer
#index
Instance Method Summary
collapse
Methods included from Utilities
included
Methods inherited from Indexer
#initialize, #put, #put_all
Instance Method Details
#delete(document_id) ⇒ Object
13
14
15
|
# File 'lib/agnostic_backend/cloudsearch/indexer.rb', line 13
def delete(document_id)
delete_all([document_id])
end
|
#delete_all(document_ids) ⇒ Object
17
18
19
20
21
22
23
|
# File 'lib/agnostic_backend/cloudsearch/indexer.rb', line 17
def delete_all(document_ids)
documents = document_ids.map do |document_id|
{"type" => 'delete',
"id" => document_id}
end
publish_all(documents)
end
|