Class: Orchestrate::Search::DistanceResult

Inherits:
RangeResult show all
Defined in:
lib/orchestrate/search/results.rb

Overview

Distance Aggregate result object

Instance Attribute Summary

Attributes inherited from RangeResult

#buckets

Attributes inherited from AggregateResult

#collection, #count, #field_name, #kind

Instance Method Summary collapse

Methods inherited from RangeResult

#initialize

Methods inherited from AggregateResult

#initialize

Constructor Details

This class inherits a constructor from Orchestrate::Search::RangeResult

Instance Method Details

#to_sObject Also known as: inspect

Returns Pretty-Printed string representation of the DistanceResult object.

Returns:

  • Pretty-Printed string representation of the DistanceResult object



198
199
200
# File 'lib/orchestrate/search/results.rb', line 198

def to_s
  "#<Orchestrate::Search::DistanceResult collection=#{collection.name} field_name=#{field_name} buckets=#{buckets}>"
end