Method: Elastictastic::BasicDocument::ClassMethods#any?

Defined in:
lib/elastictastic/basic_document.rb

#any?TrueClass, FalseClass

Returns True if there are documents of this type in the default index.

Returns:

  • (TrueClass, FalseClass)

    True if there are documents of this type in the default index.



113
114
115
116
117
# File 'lib/elastictastic/basic_document.rb', line 113

delegate :find, :destroy, :destroy_all, :sync_mapping, :inspect,
:find_each, :find_in_batches, :first, :count, :empty?, :any?,
:all, :query, :filter, :from, :size, :sort, :highlight, :fields,
:script_fields, :preference, :facets, :routing,
:to => :current_scope