コード例 #1
0
ファイル: indexer.py プロジェクト: WordPress/openverse-api
    def load_test_data(self, model_name: str, **_):
        """
        Create test indices in Elasticsearch for QA.

        :param model_name: the name of the media type
        """

        create_search_qa_index(model_name)
        if self.progress is not None:
            self.progress.value = 100  # mark job as completed
コード例 #2
0
ファイル: indexer.py プロジェクト: sk044/cccatalog-api
 def load_test_data():
     """ Create test indices in Elasticsearch for QA. """
     create_search_qa_index()