srchx
v1.2
独立的轻量级全文搜索引擎构建在
blevesearch顶部,Go使用多个存储(scorch,boltdb,leveldb,badgerdb)
Go运行时,就可以使用完整的CPU内核。badgerdb (纯GO RocksDB替代方案), boltdb , leveldb , scorch 。POST到索引端点即可。./srchxchmod +x ./srchx./srchx --help查看帮助信息 # 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
我在此处在Postman上发表了API文档,并提供了示例。
一个喜欢建立大幅变化的小东西的地鼠。