search for: set_sort_by_key

Displaying 2 results from an estimated 2 matches for "set_sort_by_key".

2010 Aug 27
1
Using relevance when sorting by generated key
...er to implement a custom weighting scheme that would combine BM25 weighting and distance. The problem is that I am using perl and PostingSource is not available for perl. Besides, I find this solution unnecessarily complicated. A more simple solution would be if the sorter in Xapian::Enquire::set_sort_by_key provided an extra argument for Xapian::Sorter::operator, namely the weight of the current document with respect to the current query. Does this make sense? Is it possible to implement something like that in some future version of xapian?
2013 Feb 20
1
Sticky results
Hi there, I have a xapian index whose results are being sorted by a value, with (PHP bindings): $enquire->set_sort_by_value($sort_data_value); This is because I want the results returned in chronological order of publication date. However, I now have a need to have certain results be 'sticky' at the top of the resultset, regardless of their publication date. Obviously there are