Displaying 5 results from an estimated 5 matches for "db_creat".
Did you mean:
db_create
2008 Oct 25
2
can not compile 1.1.5 with BDB
...use in this function)
dict-db.c:87: error: structure has no member named `db_env'
dict-db.c:87: error: structure has no member named `db_env'
dict-db.c:93: error: structure has no member named `db_env'
dict-db.c:93: error: structure has no member named `db_env'
dict-db.c:93: error: `DB_CREATE' undeclared (first use in this function)
dict-db.c:94: error: `DB_INIT_MPOOL' undeclared (first use in this
function)
dict-db.c:94: error: `DB_INIT_TXN' undeclared (first use in this
function)
dict-db.c:100: error: structure has no member named `db_env'
dict-db.c:100: error: stru...
2013 Jun 19
2
Compact databases and removing stale records at the same time
...{
/* set up a cursor to read from all the source databases */
Xapian::Database srcdb = Xapian::Database();
while (*sources) {
srcdb.add_database(Xapian::Database(*sources++));
}
/* create a destination database */
Xapian::WritableDatabase destdb = Xapian::WritableDatabase(dest, Xapian::DB_CREATE);
/* copy all matching documents to the new DB */
Xapian::PostingIterator it;
for (it = srcdb.postlist_begin(""); it != srcdb.postlist_end(""); it++) {
Xapian::docid did = *it;
Xapian::Document doc = srcdb.get_document(did);
std::string cyrusid = doc.get_valu...
2013 Jul 03
2
Potential memory leak when assigning MSetItem values
...ng reference to the MSet or
MSetIterator.
import os
import simplejson as json
import xapian as x
import shutil
import gc
def make_db(path, num_docs=100000):
try:
shutil.rmtree(path)
except OSError, e:
if e.errno != 2:
raise
db = x.WritableDatabase(path, x.DB_CREATE)
for i in xrange(1, num_docs):
doc = x.Document()
doc.set_data(json.dumps({ 'id': i, 'enabled': True }))
doc.add_term('XTYPA')
db.add_document(doc)
return db
def run_query(db, num_docs=100000):
e = x.Enquire(db)
e.set_query(x...
2004 Dec 30
3
Problems migrating from WBEL
Hi folks:
I've recently migrated one of my production servers (bad Jason!) from
WBEL to CentOS 3.3 using Donavan's instructions in the FAQ
(http://www.centos.org/modules/smartfaq/faq.php?faqid=19). While it
was as painless as the document suggests, I've run into problems with
postgrey (a postfix greylisting daemon) on my server. Whenever I try
to start postgrey, I get the
2013 Jun 19
2
Compact databases and removing stale records at the same time
...apian::Database(*sources++));
}
Xapian::Enquire enquire(*srcdb);
enquire.set_query(Xapian::Query::MatchAll);
Xapian::MSet matches = enquire.get_mset(0, srcdb->get_doccount());
/* create a destination database */
Xapian::WritableDatabase *destdb = new Xapian::WritableDatabase(dest, Xapian::DB_CREATE_OR_OPEN);
destdb->begin_transaction();
/* copy all matching documents to the new DB */
for (Xapian::MSetIterator i = matches.begin() ; i != matches.end() ; ++i) {
Xapian::Document doc = i.get_document();
std::string cyrusid = doc.get_value(SLOT_CYRUSID);
if (cb(cyrusid.c_str(...