Hi Rishabh,<br><br>I think its better not to expose RankiList to Letor.h and make it better user friendly. So my suggestion is to convert RankList to the following statement in this method.<br><br>std::map&lt;Xapian::docid, double&gt; letor_score(const Xapian::MSet &amp; mset);<br>
<br>So just convert the RankList in std::map&lt;Xapian::docid, double&gt; format in the methods where you need to return.<br><br>Parth.<br><br><div class="gmail_quote">On Fri, Jul 27, 2012 at 5:06 PM, Rishabh Mehrotra <span dir="ltr">&lt;<a href="mailto:erishabh@gmail.com" target="_blank">erishabh@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div>I had a little doubt: How do I make a RankList recognizable in Letor.h? </div><div><b>letor.h</b> resides in <b>xapian/xapian-letor/include/xapian/</b> whereas <b>ranklist.h</b> resides in <b>xapian/xapian-letor/</b>. I want a function in letor.cc to return a RankList so the function declaration in letor.h requires RankList to be recognized.</div>


<div><br></div><div>Thanks. <span class="HOEnZb"><font color="#888888"><br>Rishabh.<br><br>
</font></span></div>
</blockquote></div><br>