node xapian
1.0.0
N-APIを使用したノード用のXapianバインディング
xapian-coreをインストールする必要があります。
Database()Database(path: string, flags = 0)close()reopen() - > bool.size / get_size() - > numberget_description() - > stringhas_positions() - > bool.doccount / get_doccount() - > number.lastdocid / get_lastdocid() - > numberget_avlength() - > numberget_total_length() - > numberget_doclength(docid: number) - > numberget_document(docid: number) - > Documentget_metadata(key: string) - > stringget_uuid() - > stringlocked() - > boolget_revision() - > numbercompact(path: string, flags=0, block_size=0)DatabaseからのすべてのフィールドとメソッドWritableDatabase()WritableDatabase(path: string, flags=0)commit()begin_transaction() / begin_transaction(val: boolean)commit_transaction()cancel_transaction()add_document(doc: Document) - > docid (number)delete_document(docid: number) / delete_document(bool_term: string)replace_document(docid: number, doc: Document) / replace_document(bool_term: string, doc: Document) - > docidadd_spelling(spelling: string) / add_spelling(spelling: string, n: number)remove_spelling(spelling: string) / remove_spelling(spelling: string, n: number)add_synonym(word1: string, word2: string)remove_synonym(word1: string, word2: string)clear_synonyms()set_metadata(key: string, value: string)Document()get_value(slot: number) - > stringadd_value(slot: number, value: string) - > stringremove_value(slot: number)clear_values().data / get_data() - > string.data / set_data(data: string)