lib/elastic/site-search/client.rb
# Return the number of autoselects (when a user clicks a result from an autocomplete dropdown)
# that occurred on each day in the time range for the provided Engine and optional DocumentType.
# The maximum time range between start and end dates is 30 days.
#
# @param [String] engine_id the Engine slug or ID
# @param [Hash] options
# @option options [String] :document_type_id the DocumentType slug or ID
# @option options [String] :start_date a date formatted like '2013-01-01'
# @option options [String] :end_date to a date formatted like '2013-01-01'
Return the number of autoselects (when a user clicks a result from an autocomplete dropdown)
that occurred on each day in the time range for the provided Engine and optional DocumentType.
The maximum time range between start and end dates is 30 days.
Return the number of autoselects ( when a user clicks a result from an autocomplete dropdown ) that occurred on each day in the time range for the provided Engine and optional DocumentType . The maximum time range between start and end dates is 30 days .
def analytics_autoselects(engine_id, options={})
          document_type_id = options.delete(:document_type_id)
          if document_type_id
            get("engines/#{engine_id}/document_types/#{document_type_id}/analytics/autoselects.json", options)
          else
            get("engines/#{engine_id}/analytics/autoselects.json", options)
          end
        end
def analytics_autoselects ( engine_id , options = { } ) document_type_id = options . delete ( :document_type_id ) if document_type_id get ( "engines/#{engine_id}/document_types/#{document_type_id}/analytics/autoselects.json" , options ) else get ( "engines/#{engine_id}/analytics/autoselects.json" , options ) end end
Return the number of autoselects (when a user clicks a result from an autocomplete dropdown)
that occurred on each day in the time range for the provided Engine and optional DocumentType.
Return the number of autoselects ( when a user clicks a result from an autocomplete dropdown ) that occurred on each day in the time range for the provided Engine and optional DocumentType .
engine_id
<not_specific>
options
:end_date to a date formatted like '2013-01-01'
: end_date to a date formatted like ' 2013 - 01 - 01 '
<not_specific>
None