This repository contains tools for searching fanfics from fimfiction.net
- Build search tools.
git submodule update --init && make
should be enough. - Download latest fimfarchive.
- Build metadata database from index.json of that archive.
unzip -p $ARCHIVE_PATH index.json | ./fimfar build
Old search system is combination of various tools from ./fimfar
such as:
name
, merge
, select
, search
, multisearch
.
They don't need much additional space on disk or in RAM, but every full-text search with multisearch
and especially search
requires long time to complete.
New search uses power of existing search engine Xapian wrapped in Recoll.
Using new search requires more additional steps and preparatory time, but results faster full-text search.
- Install recoll of at least version 1.40.2 or latest git if it hasn't been released yet
- Compile
rclfimf
inrecoll/
by executinggcc -lminizip -O2 -o rclfimf rclfimf.c -I ../src/ rclcommon.c ../src/utils.c
- Use example configs in
recoll/config
to configure your recoll, move fimfarchive to empty directory - Copy
db/extra.bin
into that directory as archive and name it same, but with .zip replaced to .bin - Do step 4 for
db/alttag.bin
and extension .tag - Index with
recollindex