search for: get_maxweight

Displaying 3 results from an estimated 3 matches for "get_maxweight".

2018 Jan 24
0
How to get the serialise score returned in Xapian::KeyMaker->operator().
...function using PostingSource instead of using > KeyMaker, we reference your python example and source code of xapian, > the simple demo is here. > https://github.com/xiangqianzsh/xapian_leaning/blob/master/postingsource/ExternalWeightPostingSource.h I'd just put the get_weight() and get_maxweight() implementations into your ExternalWeightPostingSource class - the WeightSource class doesn't seem to serve a useful purpose and just adds virtual method call overheads (and those can add up, unless the compiler can devirtualise the calls, which compilers are getting better at). In the python...
2018 Jan 22
2
How to get the serialise score returned in Xapian::KeyMaker->operator().
>A possible workaround (and perhaps a better approach) would be to >set BoolWeight as the weighting scheme, then feed in your score as >a weight using a PostingSource. Then it's available via get_weight() >on the MSetIterator object: > >https://getting-started-with-xapian.readthedocs.io/en/latest/advanced/postingsource.html > >You may find that's faster because
2009 Feb 12
1
problem when using xapian's static libs in windows
...database.obj) : error LNK2001: ????????? "public: virtual unsigned int __thiscall LeafPostList::get_termfreq_est(void)const " (?get_termfreq_est at LeafPostList@@UBEIXZ) libinmemory.lib(inmemory_database.obj) : error LNK2001: ????????? "public: virtual double __thiscall LeafPostList::get_maxweight(void)const " (?get_maxweight at LeafPostList@@UBENXZ) libinmemory.lib(inmemory_database.obj) : error LNK2001: ????????? "public: virtual double __thiscall LeafPostList::get_weight(void)const " (?get_weight at LeafPostList@@UBENXZ) libinmemory.lib(inmemory_database.obj) : error LNK200...