srchx
v1.2
A standalone lightweight full-text search engine built on top of
blevesearchandGowith multiple storage (scorch,boltdb,leveldb,badgerdb)
Go runtime.badgerdb (pure Go rocksdb alternative), boltdb, leveldb, scorch.POST your data to the indexing endpoint../srchx
chmod +x ./srchx
./srchx --help to see help info# Example 1
# Add new document to the index "twitter" and type "tweet"
$ curl --request POST
--url 'http://localhost:2050/twitter/tweets/_doc/new'
--header 'Content-Type: application/json'
--data '{
"user": "u5",
"content": "this is my tweet",
"views": 5
}'
# Example 2
# Fetch the previously added document using its ID
$ curl http://localhost:2050/twitter/tweets/_doc/2552b636-002e-4f1a-98b1-bdb06c2464ac
I published the API docs on postman here with examples.
A Gopher who likes to build tiny things that make big change.