Class: Velocity::Instance::SearchCollection::Indexer
- Inherits:
-
CollectionService
- Object
- APIModel
- CollectionService
- Velocity::Instance::SearchCollection::Indexer
- Defined in:
- lib/acceleration/velocity.rb
Overview
The Indexer service of the collection
Methods implied by method_missing:
-
start
-
stop
-
restart
Instance Attribute Summary
Attributes inherited from CollectionService
Attributes inherited from APIModel
Instance Method Summary collapse
-
#full_merge(options = {}) ⇒ Object
Executes a full merge on the index.
-
#prefix ⇒ Object
The prefix for interacting via the Velocity API.
-
#status(args = {}) ⇒ Object
Get the status of the indexer.
Methods inherited from CollectionService
#initialize, #restart, #start, #stop
Methods inherited from APIModel
#initialize, #method_missing, #resolve, #respond_to_missing?
Constructor Details
This class inherits a constructor from Velocity::Instance::SearchCollection::CollectionService
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Velocity::Instance::APIModel
Instance Method Details
#full_merge(options = {}) ⇒ Object
Executes a full merge on the index. This reduces the number of files across which the index is spread and also removes deleted data.
-
:subcollection => ‘live’ (default) or ‘staging’
1052 1053 1054 |
# File 'lib/acceleration/velocity.rb', line 1052 def full_merge( = {}) act 'full-merge', end |
#prefix ⇒ Object
The prefix for interacting via the Velocity API.
1043 1044 1045 |
# File 'lib/acceleration/velocity.rb', line 1043 def prefix collection.prefix + '-indexer' end |
#status(args = {}) ⇒ Object
Get the status of the indexer
This is a convenience method for Status#indexer. See SearchCollection#status for optional arguments.
1062 1063 1064 |
# File 'lib/acceleration/velocity.rb', line 1062 def status(args = {}) collection.status(args).indexer end |