Difference between revisions of "Zimwriterdb"
Line 1: | Line 1: | ||
The '''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 replacement to the database) e.g. the file system. | The '''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 replacement to the database) e.g. the file system. | ||
== Fulltext search index == | |||
The fulltext search, implemented in zimlib and used in zimreader, needs an index file. The index file is ZIM file with special articles in [[Namespace|namespace ''X'']]. The indexer, which creates that index file is implemented as a data source in zimwriter. It reads the articles from a zim file to create the full text index. To use it, pass -Z ''zimfile'' to the writer e.g. ''zimwriter -Z wikipedia-de.zim wikipedia-de-x.zim''. |
Revision as of 17:39, 11 January 2013
The 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 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 replacement to the database) e.g. the file system.
Fulltext search index
The 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 data source in zimwriter. It reads the articles from a zim file to create the full text index. To use it, pass -Z zimfile to the writer e.g. zimwriter -Z wikipedia-de.zim wikipedia-de-x.zim.