1 MODULE = Search::Xapian PACKAGE = Search::Xapian::WritableDatabase
11 RETVAL = new WritableDatabase(file, opts);
20 WritableDatabase * database
22 RETVAL = new WritableDatabase(*database);
30 #if XAPIAN_AT_LEAST(1,5,0)
31 RETVAL = new WritableDatabase(std::string(), Xapian::DB_BACKEND_INMEMORY);
33 RETVAL = new WritableDatabase(InMemory::open());
42 WritableDatabase::flush()
51 WritableDatabase::commit()
60 WritableDatabase::begin_transaction(flushed = NO_INIT)
64 if (items == 2) { /* items includes the hidden this pointer */
65 THIS->begin_transaction(flushed);
67 THIS->begin_transaction();
74 WritableDatabase::commit_transaction()
77 THIS->commit_transaction();
83 WritableDatabase::cancel_transaction()
86 THIS->cancel_transaction();
92 WritableDatabase::add_document(document)
96 RETVAL = THIS->add_document(*document);
104 WritableDatabase::delete_document(did)
108 THIS->delete_document(did);
114 WritableDatabase::delete_document_by_term(unique_term)
118 THIS->delete_document(unique_term);
124 WritableDatabase::replace_document(did, document)
129 THIS->replace_document(did, *document);
135 WritableDatabase::replace_document_by_term(unique_term, document)
140 THIS->replace_document(unique_term, *document);
146 WritableDatabase::set_metadata(string key, string value)
149 THIS->set_metadata(key, value);
155 WritableDatabase::DESTROY()
158 WritableDatabase::add_synonym(string term, string synonym)
161 THIS->add_synonym(term, synonym);
167 WritableDatabase::remove_synonym(string term, string synonym)
170 THIS->remove_synonym(term, synonym);
176 WritableDatabase::clear_synonyms(string term)
179 THIS->clear_synonyms(term);
185 WritableDatabase::add_spelling(word, freqinc = 1)
190 THIS->add_spelling(word, freqinc);
196 WritableDatabase::remove_spelling(word, freqdec = 1)
201 THIS->remove_spelling(word, freqdec);