February 2018
Intermediate to advanced
246 pages
6h 3m
English
Let us search for "apple" and "cake" together using the cURL command:
$ curl -LX POST -d '["cake", "apple"]' localhost:9090/api/query | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 189 100 172 100 17 172 17 0:00:01 --:--:-- 0:00:01 27000
[
{
"title": "Book 3",
"url": "http://file_server:9876/book3"
},
{
"title": "Book 1",
"url": "http://file_server:9876/book1"
},
{
"title": "Book 2",
"url": "http://file_server:9876/book2"
}
]
The following are the docker-compose logs when we search for "apple" and "cake":
concierge_1 | 2018/01/21 20:31:06 http://a_m_librarian:6060/api -> api.queryResult{Count:3, Data:[]api.docs{api.docs{DocID:"3c9c56d31ccd51bc7ac0011020819ef38ccd74a4", ...Read now
Unlock full access