Method: Orchestrate::Search::TopValuesBuilder#to_param

Defined in:
lib/orchestrate/search/aggregate_builder.rb

#to_param#to_s

Returns constructed aggregate string clause.

Returns:

  • (#to_s)

    constructed aggregate string clause



121
122
123
124
125
126
127
# File 'lib/orchestrate/search/aggregate_builder.rb', line 121

def to_param
  if @offset.nil? && @limit.nil?
    "#{@field_name}:top_values"
  else
    "#{@field_name}:top_values:offset:#{@offset}:limit:#{@limit}"
  end
end