Module: Esearch::Mixin::Exist

Included in:
Document, Index, Indices, Type
Defined in:
lib/esearch/mixin.rb

Overview

Mixin for exist predicate

Instance Method Summary collapse

Instance Method Details

#exist?true, false

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Test if index does exist

Returns:

  • (true)

    if index exists

  • (false)

    otherwise



20
21
22
# File 'lib/esearch/mixin.rb', line 20

def exist?
  Command::Exist.run(self)
end