<div dir="ltr"><div>> > I'm not clear on what the OFFSET really represents. Could you</div><div>> > please explain a bit?</div><div>></div><div>> Omega paginates results (as does Xapian's MSet, internally). So if</div><div>> you're displaying the second page of results, you'll need to know</div><div>> that when building training data. It's affected by TOPDOC and also</div><div>> by the <>[# CGI variables, but internally to omega there's one</div><div>> variable it's mapped onto.</div><div>></div><div>> In omegascript, you can find this using $topdoc.</div><div><br></div><div>Thanks for the explanation. Understood now.</div><div><br></div><div>> > In the end, we will have two files it seems -- one created from the</div><div>> > query template containing separate entries for each executed search</div><div>> > as per the format you described previously and another containing</div><div>> > query IDs and click URLs logged using a different template?</div><div>></div><div>> Yes, that's right. I recommend logging Xapian docids instead of click</div><div>> URLs for the reason previously discussed.</div><div><br></div><div>Yes, I'll use docids instead of click URLs as you recommend. Now</div><div>for the first step i.e logging separate entries for each executed</div><div>search from the query template, I wanted to know if I should modify</div><div>the existing log command or implement a separate one? Although,</div><div>I think if we implement a new one we'll have a certain level of flexibility</div><div>for achieving our purpose.</div><div><br></div><div>> > It doesn't seem to comply with the format</div><div>> > mentioned in its documentation as it expects two arguments but</div><div>> > we provide only one here i.e. query.log and what does this</div><div>> > argument mean?</div><div>></div><div>> The [] means that the second parameter is optional. Indeed, the</div><div>> documentation says:</div><div>></div><div>> ENTRY defaults to a format similar to the Common Log Format</div><div>> used by webservers.</div><div><br></div><div>Thanks, it's clear to me now. I didn't come across the fact that</div><div>the parameters in square brackets are assumed to be optional.</div></div>