search for: sortkeymaker

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

2017 Dec 15
5
How to get the serialise score returned in Xapian::KeyMaker->operator().
...a problem in using it. After using boolean terms to get some candidates of documents (still too much), we want sorted them by self-defined function which is used in Xapian::KeyMaker->operator(). But how can I get the serialise score in Xapian::MSetIterator object. c++ code likes this: class SortKeyMaker : public Xapian::KeyMaker { std::string operator()(const Xapian::Document& doc) const { double score = self-defined-function(doc); return Xapian::sortable_serialise(score); // How get this value in Xapian::MSetIterator } -- 发自我的网易邮箱手机智能版
2017 Dec 16
0
How to get the serialise score returned in Xapian::KeyMaker->operator().
...ng boolean terms to get some candidates of documents (still > too much), we want sorted them by self-defined function which is used > in Xapian::KeyMaker->operator(). But how can I get the serialise score > in Xapian::MSetIterator object. > > c++ code likes this: > > class SortKeyMaker : public Xapian::KeyMaker { > std::string operator()(const Xapian::Document& doc) const { > double score = self-defined-function(doc); > return Xapian::sortable_serialise(score); // How get this value in Xapian::MSetIterator > } Unfortunately the sort key isn't curren...