srchx
v1.2
blevesearchの上に構築されたスタンドアロンの軽量のフルテキスト検索エンジンと複数のストレージ(scorch、boltdb、leveldb、badgerdb)でGo
Go Runtimeのおかげで、完全なCPUコアを利用します。badgerdb (Pure Go Rocksdb Alternative)、 boltdb 、 leveldb 、 scorch 。POSTだけです。./srchxとしてコピー/名前を変更しますchmod +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ドキュメントを公開しました。
大きな変化をもたらす小さなものを作るのが好きなGopher。