public void RecordClick(String pageInfo, String clickType, Int32 blockType, String resultId, String sourceId, String queryText, String resultTitle, String resultTitleUrl) { using (var ctx = new ClientContext(Settings.Default.SP2013SearchUrl)) { var executor = new SearchExecutor(ctx); executor.RecordPageClick(pageInfo, clickType, blockType, resultId, 0, sourceId, queryText, resultTitle, resultTitleUrl); } }