search-api-service

时间:2021-04-15 00:37:35
【文件属性】:
文件名称:search-api-service
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-15 00:37:35
golang elasticsearch Go 搜索API 从源文章复制: : Upload a couple of fake documents, for example, documents found inside fake-data.json file. $ curl -X POST http://localhost:8080/documents -d @fake-data.json -H "Content-Type: application/json" Try it out. $ curl http://localhost:8080/search?query=exercitation+est+officia { "time": "42", "hits": "43", "documents": [{ "title": "Exercitation est officia fugiat labore
【文件预览】:
search-api-service-master
----search-api()
--------Dockerfile(146B)
--------main.go(3KB)
--------.gitignore(8B)
--------Gopkg.toml(655B)
--------Gopkg.lock(4KB)
----fake-data.json(1KB)
----docker-compose.yml(342B)
----README.md(854B)

网友评论