Class: Couchbase::Management::SearchIndex
- Inherits:
-
Object
- Object
- Couchbase::Management::SearchIndex
- Defined in:
- lib/couchbase/management/search_index_manager.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/management/search_index_manager.rb more...
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the index.
-
#params ⇒ Hash
Index properties such as store type and mappings.
-
#plan_params ⇒ Hash
Plan properties such a number of replicas and number of partitions.
-
#source_name ⇒ String
Name of the source of the data for the index (e.g. bucket name).
-
#source_params ⇒ Hash
Extra parameters for the source.
-
#source_type ⇒ String
Type of the data source.
-
#source_uuid ⇒ String
The UUID of the ata source, this can be used to more tightly tie the index to a source.
-
#type ⇒ String
Type of the index.
-
#uuid ⇒ String
UUID is required for update.
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ SearchIndex
constructor
A new instance of SearchIndex.
Constructor Details
#initialize {|self| ... } ⇒ SearchIndex
Returns a new instance of SearchIndex.
360 361 362 363 364 |
# File 'lib/couchbase/management/search_index_manager.rb', line 360 def initialize @type = "fulltext-index" @source_type = "couchbase" yield self if block_given? end |
Instance Attribute Details
#name ⇒ String
Returns name of the index.
333 334 335 |
# File 'lib/couchbase/management/search_index_manager.rb', line 333 def name @name end |
#params ⇒ Hash
Returns index properties such as store type and mappings.
342 343 344 |
# File 'lib/couchbase/management/search_index_manager.rb', line 342 def params @params end |
#plan_params ⇒ Hash
Returns plan properties such a number of replicas and number of partitions.
357 358 359 |
# File 'lib/couchbase/management/search_index_manager.rb', line 357 def plan_params @plan_params end |
#source_name ⇒ String
Returns name of the source of the data for the index (e.g. bucket name).
345 346 347 |
# File 'lib/couchbase/management/search_index_manager.rb', line 345 def source_name @source_name end |
#source_params ⇒ Hash
Returns extra parameters for the source. These are usually things like advanced connection and tuning.
354 355 356 |
# File 'lib/couchbase/management/search_index_manager.rb', line 354 def source_params @source_params end |
#source_type ⇒ String
Returns type of the data source.
348 349 350 |
# File 'lib/couchbase/management/search_index_manager.rb', line 348 def source_type @source_type end |
#source_uuid ⇒ String
Returns the UUID of the ata source, this can be used to more tightly tie the index to a source.
351 352 353 |
# File 'lib/couchbase/management/search_index_manager.rb', line 351 def source_uuid @source_uuid end |
#type ⇒ String
Returns type of the index.
336 337 338 |
# File 'lib/couchbase/management/search_index_manager.rb', line 336 def type @type end |
#uuid ⇒ String
Returns UUID is required for update. It provides means of ensuring consistency.
339 340 341 |
# File 'lib/couchbase/management/search_index_manager.rb', line 339 def uuid @uuid end |