August 2019
Intermediate to advanced
560 pages
13h 41m
English
The response to the query using a high-level library is the same as the response of the low-level client. You can print the whole response object with the raw data by using the to_dict() method. You can use the response object as a key and use a dot to access its attribute value. Under the downloaded cf_etf directory, issue the command shown in the following code block to activate the virtual environment and run the program. You will find that the printed response body contains the ACWI ETF information:
$source venv/bin/activate$python -m unittest com.example.test.test_high_level_client.TestHighLevelClientSearch..{'took': 1, 'timed_out': False, '_shards': {'total': 1, 'successful': 1, 'skipped': 0, 'failed': 0}, 'hits': ...
Read now
Unlock full access