modulepackage
0.0.0-20240810025637-5e343b63812d
Repository: https://github.com/alsosee/search.git
Documentation: pkg.go.dev
# README
search
graph LR
S[search] --read--> I[(info)]
S --read--> M[(media)]
S --write--> MS[(MeiliSearch)]
Meilisearch is exposed on a separate domain: https://search.alsosee.info/ and used by finder.
Local developmenth
Checkout info and media directories in the same directory as this repo:
tree .
├── info
├── media
└── search
Run MeiliSearch:
docker compose up search -d
Create index:
curl -X "POST" "http://127.0.0.1:7700/indexes" \
-H 'Authorization: Bearer secret' \
-H 'Content-Type: application/json' \
-d $'{
"uid": "info",
"primaryKey": "ID"
}'
Run the app:
docker compose up indexer
# Functions
NewIndexer creates a new Indexer.