lib/elastic/site-search/client.rb
# Log a clickthrough for a Document.
#
# @param [String] engine_id the Engine slug or ID
# @param [String] document_type the DocumentType slug or ID
# @param [String] q the query that generated the search result
# @param [String] id the external_id or ID of the Document
Log a clickthrough for a Document.
Log a clickthrough for a Document .
def log_clickthrough(engine_id, document_type, q, id)
          post(
            "engines/#{engine_id}/document_types/#{document_type}/analytics/log_clickthrough.json",
            {:q => q, :id => id}
          )
        end
def log_clickthrough ( engine_id , document_type , q , id ) post ( "engines/#{engine_id}/document_types/#{document_type}/analytics/log_clickthrough.json" , { :q => q , :id => id } ) end
Log a clickthrough for a Document.
Log a clickthrough for a Document .
engine_id
<not_specific>
document_type
<not_specific>
q
<not_specific>
id
<not_specific>
<not_specific>
id the external_id or ID of the Document
id the external_id or ID of the Document