search for: get_lastdocid

Displaying 6 results from an estimated 6 matches for "get_lastdocid".

2006 Oct 19
1
Writing with xapian-tcpsrv and php
Hi, I think, there is missing constructor function supporting remote writing for XapianWritableDatabase class in the php bindings (0.9.7). This code: $db = new XapianWritableDatabase(remote_open($db_host, $db_port), $action); returns: Fatal error: No matching function for overloaded 'new_XapianWritableDatabase' (...) $db = new XapianWritableDatabase($path, $action); works fine.
2015 Mar 11
2
stub-file and get_doccount
Hello, i switched from one big index to a stub file with many indexes and running into a problem. i have a tool to fetch a random document via: get_doccount random id up to get_doccount get_document with that id after changing to stub file this failes. Is there a nice way to get a random document from a stub file? ?MfG? Felix Ostmann
2007 May 15
1
Document ID 0 is invalid... but not always...
...gi-bin/bugzilla/show_bug.cgi?id=143 $doc->add_term('metadata'); $db->replace_document(-1, $doc); // or 4294967295 = (2^32)-1 $doc=new XapianDocument(); $doc->set_data('data'); $doc->add_term('data'); $docId=$db->add_document($doc); // get_lastdocid()+1 overflows, will return 0 echo "doc #$docId added\n"; The two docs are added without error, but the second one will get the docId 0 and of course won't be accessible. Another variant will cause xapian to overwrite an existing record : (pseudo code) : new XapianWritableD...
2007 Jul 17
1
BUG IN XAPIAN_FLUSH_THRESHOLD
There is is bug when setting XAPIAN_FLUSH_THRESHOLD=20000000 When trying for force Xapian flush documents to flush after 20 million documents Xapian ignores the size and flush it after only 10,000 documents. Data captured from delve after 60 seconds interval when has been set as follow: XAPIAN_FLUSH_THRESHOLD=20000000 perl -e ' while(1) { system("delve ."); sleep(60); } '
2009 Feb 12
1
problem when using xapian's static libs in windows
...client.obj) : error LNK2001: ????????? "public: virtual unsigned int __thiscall RemoteDatabase::get_doccount(void)const " (?get_doccount at RemoteDatabase@@UBEIXZ) libbackend.lib(dbfactory_remote.obj) : error LNK2001: ????????? "public: virtual unsigned int __thiscall RemoteDatabase::get_lastdocid(void)const " (?get_lastdocid at RemoteDatabase@@UBEIXZ) libnet.lib(progclient.obj) : error LNK2001: ????????? "public: virtual unsigned int __thiscall RemoteDatabase::get_lastdocid(void)const " (?get_lastdocid at RemoteDatabase@@UBEIXZ) libnet.lib(tcpclient.obj) : error LNK2001: ????...
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