<div dir="ltr"><div class="gmail_extra"><div class="gmail_extra">Hi James,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I've completed the first step of logging the click data i.e. logging</div><div class="gmail_extra">separate entries for each executed search from the query template.</div><div class="gmail_extra">More on that progress here [1].</div><div class="gmail_extra"><br></div><div class="gmail_extra">Now for the next step, i.e. logging the query IDs and click URL on each</div><div class="gmail_extra">click event, as planned, I created a new template which has another log</div><div class="gmail_extra">command [2]. To redirect to the clicklog template, we could add an onClick</div><div class="gmail_extra">event inside the <a> tag in line 109 in the query template [3] which calls</div><div class="gmail_extra">an external javascript function something like this one [4] to redirect to</div><div class="gmail_extra">the clicklog template. But, I can't see how we would pass $query and the</div><div class="gmail_extra">clicked doc $id to the template using that function. We want to be able</div><div class="gmail_extra">to do that in order to log them using the clicklog template. How do you</div><div class="gmail_extra">suggest I go about doing this?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra">Vivek</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="https://trac.xapian.org/wiki/GSoC2017/LetorClickstream/Journal#CodingWeek2:June10June16">https://trac.xapian.org/wiki/GSoC2017/LetorClickstream/Journal#CodingWeek2:June10June16</a></div><div class="gmail_extra">[2] <a href="https://gist.github.com/ivmarkp/374fc8781d3789b0522713a79416edc8">https://gist.github.com/ivmarkp/374fc8781d3789b0522713a79416edc8</a></div><div class="gmail_extra">[3] <a href="https://github.com/xapian/xapian/blob/master/xapian-applications/omega/templates/query#L109">https://github.com/xapian/xapian/blob/master/xapian-applications/omega/templates/query#L109</a></div></div><ul style="color:rgb(0,0,0);font-family:Verdana,Arial,"Bitstream Vera Sans",Helvetica,sans-serif;font-size:13px"></ul></div>