| Crates.io | file-search |
| lib.rs | file-search |
| version | 0.1.11 |
| created_at | 2023-08-07 13:01:31.669166+00 |
| updated_at | 2023-11-09 17:59:55.624562+00 |
| description | File indexing and search |
| homepage | |
| repository | https://github.com/nbittich/file-search |
| max_upload_size | |
| id | 937924 |
| size | 107,563 |
Index and search file content (xlsx, csv, pdf)
POST http://localhost:8080/index
{
"file_path": "/home/nordine/test.xlsx"
}
GET http://localhost:8080/search?page=0&per_page=10&q=sango&query_type=regexQuery
| env | default value |
|---|---|
| SERVICE_COLLECTION_NAME | file-search |
| SERVICE_HOST | 0.0.0.0 |
| SERVICE_PORT | 8080 |
| INDEX_DIR_PATH | /tmp/__tantivy_data |
| RUST_LOG | N/A |
| INDEX_WRITER_SIZE | 50000000 (50mb) |
use the installation script from the latest release
create file /etc/systemd/system/file-search.service and paste the following:
[Unit]
Description=File Index Search service
After=network.target
StartLimitIntervalSec=0
[Service]
Environment=RUST_LOG=debug
Environment=INDEX_DIR_PATH=<your-home>/.tantivy_data
Type=simple
Restart=always
RestartSec=1
User=<your-user>
ExecStart=<your-home>/.cargo/bin/file-search
[Install]
WantedBy=multi-user.target
sudo systemctl start file-searchsudo journalctl -f -u file-search