[Xapian-devel] How to add an custom weight to the relevancy value and sort it.

James Aylett james-xapian at tartarus.org
Sat Mar 2 14:18:19 GMT 2013


On 2 Mar 2013, at 05:11, Vishnu Kumar <vishnu at searchlabs.org> wrote:

> 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.


One way of doing this is using a PostingSource. Docs at <http://xapian.org/docs/postingsource.html> and <http://getting-started-with-xapian.readthedocs.org/en/latest/xapian-core-rst/postingsource.html>.

J

-- 
 James Aylett, occasional trouble-maker
 xapian.org




More information about the Xapian-devel mailing list