August 2019
Intermediate to advanced
560 pages
13h 41m
English
The response to the query using a low-level client is the same as the response we saw when we previously queried using Postman. Let's download the program and follow the instructions to run the test, as shown in the preceding code block. In the GitHub repository for this chapter (available at https://github.com/PacktPublishing/Mastering-Elasticsearch-7.0/tree/master/Chapter12/cf_etf), there is a Python project named cf_etf. Under the downloaded cf_etf directory, issue the following command to activate the virtual environment (virtualenv) working environment first, and then run the program. You will find that the printed response body contains the ACWI ETF:
$source venv/bin/activate(venv)$export PYTHONPATH=.:$PYTHONPATH ...Read now
Unlock full access