Class: Couchbase::Cluster::SearchResult

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ SearchResult

Returns a new instance of SearchResult.

Yield Parameters:



1482
1483
1484
# File 'lib/couchbase/search_options.rb', line 1482

def initialize
  yield self if block_given?
end

Instance Attribute Details

#facetsHash<String => SearchFacetResult>

Returns:



1472
1473
1474
# File 'lib/couchbase/search_options.rb', line 1472

def facets
  @facets
end

#meta_dataSearchMetaData

Returns:



1475
1476
1477
# File 'lib/couchbase/search_options.rb', line 1475

def 
  @meta_data
end

#rowsArray<SearchRow>

Returns:



1469
1470
1471
# File 'lib/couchbase/search_options.rb', line 1469

def rows
  @rows
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


1477
1478
1479
# File 'lib/couchbase/search_options.rb', line 1477

def success?
  .errors.nil? || .errors.empty?
end