https://github.com/egnd/fb2lib
This is a server for indexing and searching fb2-books at zip archives.
https://github.com/egnd/fb2lib
bleve fb2 fb2-library fb2converter full-text-search golang
Last synced: 3 months ago
JSON representation
This is a server for indexing and searching fb2-books at zip archives.
- Host: GitHub
- URL: https://github.com/egnd/fb2lib
- Owner: egnd
- License: mit
- Created: 2022-04-20T20:54:25.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-23T10:31:16.000Z (about 3 years ago)
- Last Synced: 2024-06-21T10:34:59.074Z (over 1 year ago)
- Topics: bleve, fb2, fb2-library, fb2converter, full-text-search, golang
- Language: JavaScript
- Homepage: https://hub.docker.com/r/egnd/fb2lib
- Size: 34.7 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fb2lib
[](https://pkg.go.dev/github.com/egnd/fb2lib)
[](https://goreportcard.com/report/github.com/egnd/fb2lib)
[](https://gocover.io/github.com/egnd/fb2lib)
[](https://github.com/egnd/fb2lib/actions?query=workflow%3ALatest)This is a server for indexing and searching fb2-books at zip archives.
### Quick start:
1. Put your archives with books into ```books``` folder2. Build books index:
```bash
docker run --rm -t --entrypoint=build_index \
-v $(pwd)/cfg.yml:/configs/app.override.yml:ro \
-v $(pwd)/books:/var/libs/default:ro \
-v $(pwd)/index:/var/index:rw \
-v $(pwd)/db:/var/db:rw \
-v $(pwd)/logs:/var/logs:rw \
egnd/fb2lib
```3. Build books summary:
```bash
docker run --rm -t --entrypoint=build_summary \
-v $(pwd)/cfg.yml:/configs/app.override.yml:ro \
-v $(pwd)/db:/var/db:rw \
-v $(pwd)/logs:/var/logs:rw \
egnd/fb2lib
```3. Create ```docker-compose.yml```:
```yaml
version: "3.8"
services:
app:
image: egnd/fb2lib
ports:
- 80:8080
volumes:
- ./cfg.yml:/configs/app.override.yml:ro
- ./libs/default:/var/libs/default:ro
- ./index:/var/index:rw
- ./db:/var/db:rw
```4. Run server with:
```bash
docker-compose up
```5. Server is available at http://localhost
### Hints:
* Advanced query language - https://blevesearch.com/docs/Query-String-Query/