Hi Vishnu,<br><br>You need to use quest.cc like program and perform your operations on the mset.<br><br>See lines 165-172 of <a href="http://trac.xapian.org/browser/branches/gsoc2011-parth/xapian-core/examples/quest.cc">http://trac.xapian.org/browser/branches/gsoc2011-parth/xapian-core/examples/quest.cc</a><br>
<br>And you can add your weights to the i.get_weight()-&gt;store in a map with docid and sort it. To sort it you can use something like lines 235-244 of <a href="http://trac.xapian.org/browser/branches/gsoc2011-parth/xapian-letor/examples/questletor.cc">http://trac.xapian.org/browser/branches/gsoc2011-parth/xapian-letor/examples/questletor.cc</a> which basically calculates new weights for the documents, add it in a sorted map and reprint it.<br>
<br>Parth.<br><br><br><div class="gmail_quote">On Sat, Mar 2, 2013 at 1:11 PM, Vishnu Kumar <span dir="ltr">&lt;<a href="mailto:vishnu@searchlabs.org" target="_blank">vishnu@searchlabs.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello guys,<br><br>I have an weight value which is calculated by some factor and i need to add the weight with the relevancy value of a result and sort it with that value is that possible in xapian.<br><br>Thanks,<br>VishnuKumar<br>

<br>_______________________________________________<br>
Xapian-devel mailing list<br>
<a href="mailto:Xapian-devel@lists.xapian.org">Xapian-devel@lists.xapian.org</a><br>
<a href="http://lists.xapian.org/mailman/listinfo/xapian-devel" target="_blank">http://lists.xapian.org/mailman/listinfo/xapian-devel</a><br>
<br></blockquote></div><br>