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文檔,並提供了示例。
一個喜歡建立大幅變化的小東西的地鼠。