文件名称:search-api-service
文件大小:6KB
文件格式:ZIP
更新时间:2024-05-04 18:24:15
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)