class Orchestrate::Search::StatsBuilder

Stats Builder object for constructing stats functions to be included in the aggregate param

Attributes

builder[R]

@return [AggregateBuilder]

field_name[R]

@return [#to_s] The field to operate over

Public Class Methods

new(builder, field_name) click to toggle source

Initialize a new RangeBuilder object @param builder [AggregateBuilder] The Aggregate Builder object @param field_name [#to_s]

# File lib/orchestrate/search/aggregate_builder.rb, line 144
def initialize(builder, field_name)
  @builder = builder
  @field_name = field_name
end

Public Instance Methods

inspect()
Alias for: to_s
to_param() click to toggle source

@return [#to_s] constructed aggregate string clause

# File lib/orchestrate/search/aggregate_builder.rb, line 156
def to_param
  "#{field_name}:stats"
end
to_s() click to toggle source

@return Pretty-Printed string representation of the StatsBuilder object

# File lib/orchestrate/search/aggregate_builder.rb, line 150
def to_s
  "#<Orchestrate::Search::StatsBuilder collection=#{collection.name} field_name=#{field_name}>"
end
Also aliased as: inspect