Changes

Jump to: navigation, search

Zimwriterdb

505 bytes added, 20:51, 11 January 2013
See also
The zimwriter '''zimwriterdb''' is a tool coded in C++ to create zim files. The articles for the files are read from a postgresql database. The schema for the database is [https://gerrit.wikimedia.org/r/gitweb?p=openzim.git;a=blob;f=zimwriter/db/zim-postgresql.sql;h=02e7bfe4d30f4d8abefeb374d1ff4f18d07f6a5c;hb=HEAD documented in the zimwriter source ]. The current implementation has a abstraction for the data source, so that it will be possible to implement other data sources (as a sql script ''de/zim-postgresqlreplacement to the database) e.g.sql''the file system.
== Fulltext search index ==The current implementation has fulltext search, implemented in zimlib and used in zimreader, needs an index file. The index file is ZIM file with special articles in namespace "X". The indexer, which creates that index file is implemented as a abstraction for the data sourcein zimwriter. It reads the articles from a zim file to create the full text index. To use it, so that it will be possible to implement other data sources (as a replacement pass -Z ''zimfile'' to the database) writer e.g. the file system''zimwriter -Z wikipedia-de.zim wikipedia-de-x.zim''.
== Create a fulltext serach index Requirements ==The fulltext search, implemented in zimlib and used in If you compile the software from source you need the following libraries installed:* cxxtools (version 2.0)* tntdb (for zimwriter) (release 1.1)* tntnet (for zimreader, needs an index file. The index file is ZIM file with special articles in [[Namespaces|namespace ''X'']]) (release 2.0)* libxz-dev* autoconf* automake* libtool
The indexer, which creates that index file is implemented as a data == See also ==* [[Git|Get the source in zimwritercode]]* [[Build_your_ZIM_file#buildZimFileFromDirectory. It reads the articles from a zim file to create the full text indexpl|buildZimFileFromDirectory. To use itpl]], pass -Z ''zimfile'' a tool able to fill the writer e.g. ''zimwriter -Z wikipedia-de.zim wikipedia-de-x.zim''.database* [[zimlib]]== Binary ==''coming soon...''* [[zimdump]]

Navigation menu