 It seems that --elasticsearch-version is not use.
article_path = '{}/{}/employee/{}?pretty'.format(
            self.es_url, TEST_INDEX, TEST_DOC_ID)
        resp = requests.get(article_path, headers=COMMON_HEADERS)
        self.assertIn('I like to collect rock albums', resp.text,
            msg='Document not found({}): {}'.format(resp.status_code, resp.text))
    def test_elasticsearch_search(self):
        search_path = '{}/{}/employee/_search?pretty'.format(self.es_url, TEST_INDEX)
        search = {
            'query': {
                'match': {
                    'last_name': 'Smith'
                }
            }
        }
        resp = requests.get(
            search_path,
            data=json.dumps(search),
            headers=COMMON_HEADERS)
        self.assertIn('I like to collect rock albums', resp.text,
            msg='Search failed({}): {}'.format(resp.status_code, resp.text))
    @classmethod
    def _add_document(self, id, document):