Class: Couchbase::SearchMetrics

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#error_partition_countInteger

Returns:

  • (Integer)


1568
1569
1570
# File 'lib/couchbase/search_options.rb', line 1568

def error_partition_count
  @error_partition_count
end

#max_scoreFloat

Returns:

  • (Float)


1562
1563
1564
# File 'lib/couchbase/search_options.rb', line 1562

def max_score
  @max_score
end

#success_partition_countInteger

Returns:

  • (Integer)


1565
1566
1567
# File 'lib/couchbase/search_options.rb', line 1565

def success_partition_count
  @success_partition_count
end

#tookInteger

Returns time spent executing the query (in milliseconds).

Returns:

  • (Integer)

    time spent executing the query (in milliseconds)



1556
1557
1558
# File 'lib/couchbase/search_options.rb', line 1556

def took
  @took
end

#total_rowsInteger

Returns:

  • (Integer)


1559
1560
1561
# File 'lib/couchbase/search_options.rb', line 1559

def total_rows
  @total_rows
end

Instance Method Details

#total_partition_countInteger

Returns:

  • (Integer)


1571
1572
1573
# File 'lib/couchbase/search_options.rb', line 1571

def total_partition_count
  success_partition_count + error_partition_count
end