public void TrackQueryResultPick(ulong queryId, double rank, ushort position, uint pageId, SearchResultType type, uint?typeId) { if (type == SearchResultType.Page) { typeId = pageId; } _session.SearchAnalytics_LogQueryPick(queryId, rank, position, pageId, type, typeId ?? 0); _session.SearchAnalytics_UpdateQueryPopularityAggregate(queryId); }