search for: get_weight

Displaying 19 results from an estimated 19 matches for "get_weight".

Did you mean: set_weight
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 it'll mean sorting by doubles instead >of strings. We realise our score function using PostingSource instead o...
2009 Jan 27
1
Segmentation fault in MSetIterator get_weight
Hi, I'm using xapian with c# and mono and i'm having a segfault in get_weight. When i print the index variable, the value is clearly too high. I think something write over it. Do you have any idea on how i could trace the beginning of the segmentation fault ? Thanks, -- Yann
2018 Jan 24
0
How to get the serialise score returned in Xapian::KeyMaker->operator().
...ealise our score 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...
2017 Dec 15
5
How to get the serialise score returned in Xapian::KeyMaker->operator().
HI, all, I am a user of Xapian, and now I have 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
2013 Jan 17
1
FASTER Search
..._chunk_to_at_least(unsigned int) 30118 11.1635 Xapian::BM25Weight::get_sumpart(unsigned int, unsigned int) const 21291 7.8917 AndMaybePostList::process_next_or_skip_to(double, Xapian::PostingIterator::Internal*) 17803 6.5989 OrPostList::next(double) 12481 4.6262 AndMaybePostList::get_weight() const 10729 3.9768 OrPostList::get_weight() const 10096 3.7422 AndMaybePostList::next(double) 8743 3.2407 ChertDatabase::get_doclength(unsigned int) const 7527 2.7900 LeafPostList::get_weight() const 7504 2.7814 ChertPostListTable::get_doclength(unsigned int, Xapian::I...
2017 Dec 16
0
How to get the serialise score returned in Xapian::KeyMaker->operator().
...but there's no accessor method for it - I can add one but that won't help for existing releases. 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 it'll mean sorting by doubles instead of strings. Also you'll get told the lowest weight that's of interest each time you need...
2013 Feb 07
0
Ideas for allowing specification of weighing scheme for Eset
...y way to build the Eset (Please do correct me if I am wrong about any assumptions Ive made so far ) . So,in order to use BM25 for weighing terms for Eset,we only need to modify the "multiplier" data member of the Expandstats class and then the final weight can be returned by ExpanWeight::get_weight( ) as (multiplier*tw) where tw will obviously be same for both the weighing schemes.Thus,depending on the weighing scheme and the parameters specified by the user in Enquire.get_eset( ) , multiplier can be calculated differently.This is fairly simple to implement.However,I have yet to figure out h...
2007 Mar 30
0
[933] branches/wxruby2/wxwidgets_282: Font API 2.6 -> 2.8, corrections to Event doc
...ot;Font#get_point_size":#Font_getpointsize </span><span class="cx"> * "Font#get_style":#Font_getstyle </span><span class="cx"> * "Font#get_underlined":#Font_getunderlined </span><span class="cx"> * "Font#get_weight":#Font_getweight </span><span class="cx"> * "Font#new":#Font_new </span><del>-* "Font#ok":#Font_ok </del><ins>+* "Font#is_ok":#Font_isok </ins><span class="cx"> * "Font#set_default_encoding&q...
2014 Apr 13
2
Adding an external library to Xapian
...cument(*i); + ++i; + } } // Generate an ESet containing terms that the user might want to add to @@ -110,7 +129,7 @@ // List the terms. Xapian::ESetIterator t; for (t = eset.begin(); t != eset.end(); ++t) { - cout << *t << ": weight = " << t.get_weight() << endl; + cout << *t << ": weight = " << t.get_weight() << endl; } } catch (const Xapian::Error &e) { cout << e.get_description() << endl; diff -ur xapian-core-1.2.17-o/expand/esetinternal.cc xapian-core-1.2.17/expand/esetintern...
2013 Sep 22
2
How to filter search result with query with has white space.
...found.\n"; std::cout << "Matches 1-" << matches.size() << ":\n" << std::endl; for (Xapian::MSetIterator i = matches.begin(); i != matches.end(); ++i) { std::cout << i.get_rank() + 1 << ": " << i.get_weight() << " docid=" << *i << " [" << i.get_document().get_data() << "]\n\n"; } } catch (const Xapian::Error &e) { std::cout << e.get_description() << std::endl; exit(1); } } int m...
2013 Sep 22
2
How to filter search result with query with has white space.
...found.\n"; std::cout << "Matches 1-" << matches.size() << ":\n" << std::endl; for (Xapian::MSetIterator i = matches.begin(); i != matches.end(); ++i) { std::cout << i.get_rank() + 1 << ": " << i.get_weight() << " docid=" << *i << " [" << i.get_document().get_data() << "]\n\n"; } } catch (const Xapian::Error &e) { std::cout << e.get_description() << std::endl; exit(1); } } int m...
2015 Jul 26
1
Get term from document by position
...##########################\n"; //cout << "Matches 1-" << matches.size() << ":\n" << endl; //for (Xapian::MSetIterator i = matches.begin(); i != matches.end(); ++i) { // cout << i.get_rank() + 1 << ": " << i.get_weight() << " docid=" << *i // << " [" << i.get_document().get_data() << "]\n\n"; } //saves content of text.txt to text_str // void MyText::set_string() { text_str=""; std::ifstream myfile ("text.txt"); std::stri...
2014 Apr 13
2
Adding an external library to Xapian
My code is not on Github. I am using the tarball as of now. The following it the error that occurred: http://pastebin.com/cVJrjUZX On Sun, Apr 13, 2014 at 8:16 PM, James Aylett <james-xapian at tartarus.org>wrote: > On 13 Apr 2014, at 15:37, Pallavi Gudipati <pallavigudipati at gmail.com> > wrote: > > > A linker error is encountered even after following the above
2008 Aug 15
3
Rcommander installation fails on Fedora 9
...bute__? before ?get_whichNA? Classes.h:90: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?get_varmemory? Classes.h:91: error: expected ?)? before ?object? Classes.h:92: error: expected ?)? before ?object? Classes.h:93: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?get_weights? Classes.h:94: error: expected ?)? before ?object? Classes.h:95: error: expected ?)? before ?object? Classes.h:96: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?get_varctrl? Classes.h:97: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?get_splitctrl? Classes.h:98:...
2005 Aug 12
1
error building xapian
...ld named 'db' inmemory_database.cc: In member function 'virtual Xapian::doccount InMemoryTermList::get_termfreq() const': inmemory_database.cc:205: error: 'db' was not declared in this scope inmemory_database.cc: In member function 'virtual OmExpandBits InMemoryTermList::get_weighting() const': inmemory_database.cc:223: error: 'db' was not declared in this scope inmemory_database.cc: In member function 'virtual Xapian::PositionIterator InMemoryTermList::positionlist_begin() const': inmemory_database.cc:256: error: 'db' was not declared in this scop...
2013 Mar 02
3
How to add an custom weight to the relevancy value and sort it.
Hello guys, 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. Thanks, VishnuKumar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20130302/9831e287/attachment-0001.html>
2009 Feb 12
1
problem when using xapian's static libs in windows
...ib(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 LNK2001: ????????? "public: virtual double __thiscall LeafPostList::recalc_maxweight(void)" (?recalc_maxweight at LeafPostList@@UAENXZ) libinmemory.lib(inmemory_database.obj) : error LNK...
2020 Aug 23
2
MultiDatabase shard count limitations
...memmove at plt 0.03% /mnt/btr/public perl [.] S_unshare_hek_or_pvn 0.03% /mnt/btr/public perl [.] Perl_pp_ref 0.03% script/public-i libxapian.so.30.8.0 [.] GlassPostList::at_end 0.02% script/public-i libxapian.so.30.8.0 [.] LeafPostList::get_weight 0.02% script/public-i libxapian.so.30.8.0 [.] Xapian::Internal::intrusive_ptr<GlassDatabase const>::~intrusive_ptr 0.02% script/public-i libxapian.so.30.8.0 [.] GlassPostList::skip_to 0.02% script/public-i libxapian.so.30.8.0 [.] GlassPostList::open_nearby_postlist...
2020 Aug 21
2
MultiDatabase shard count limitations
Going back to the "prioritizing aggregated DBs" thread from February 2020, I've got 390 Xapian shards for 130 public inboxes I want to search against(*). There's more on the horizon (we're expecting tens of thousands of public inboxes). After bumping RLIMIT_NOFILE and running ->add_database a bunch, the actual queries seem to be taking ~30s (not good :x). Now I'm