Crates.io | tantivy_warc_indexer |
lib.rs | tantivy_warc_indexer |
version | 0.3.0 |
created_at | 2021-08-19 18:03:43.83464+00 |
updated_at | 2024-12-22 00:25:44.88342+00 |
description | Builds a tantivy index from common crawl warc.wet files |
homepage | |
repository | https://github.com/ahcm/tantivy_warc_indexer |
max_upload_size | |
id | 439713 |
size | 77,066 |
tantivy_warc_indexer builds a tantivy index from common crawl warc.wet files and pubmed entrez articles.
Install rust (e.g. via rustup).
make
./target/release/tantivy_warc_indexer --help
WARC Indexer
Usage:
warc_parser [-t <threads>] [--from <from>] [--to <to>] -s <format> <index> <warc_dir>
warc_parser (-h | --help)
Options:
-h --help Show this help
-s <source> type of source files (WARC or ENTREZ or WIKIPEDIA_ABSTRACT)
-t <threads> number of threads to use, default 4
--from <from> skip files until from
--to <to> skip files after to``
Where
./target/release/tantivy_warc_indexer -s WARC ../common_crawl_tantivy_index ../wet
To create an index:
mkdir ../common_crawl_tantivy_index
cp template/meta.json ../common_crawl_tantivy_index/
Best Andreas