diff --git a/01-Load-Data-ACogSearch.ipynb b/01-Load-Data-ACogSearch.ipynb index 9c15c0b4..bbe3a12a 100644 --- a/01-Load-Data-ACogSearch.ipynb +++ b/01-Load-Data-ACogSearch.ipynb @@ -77,10 +77,10 @@ "outputs": [], "source": [ "# Define the names for the data source, skillset, index and indexer\n", - "datasource_name = \"cogsrch-datasource-files\"\n", - "index_name = \"cogsrch-index-files\"\n", - "skillset_name = \"cogsrch-skillset-files\"\n", - "indexer_name = \"cogsrch-indexer-files\"" + "datasource_name = \"cogsrch-datasource-files-2\"\n", + "index_name = \"cogsrch-index-files-2\"\n", + "skillset_name = \"cogsrch-skillset-files-2\"\n", + "indexer_name = \"cogsrch-indexer-files-2\"" ] }, { @@ -110,7 +110,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "204\n", + "201\n", "True\n" ] } @@ -195,7 +195,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "204\n", + "201\n", "True\n" ] } @@ -339,7 +339,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "204\n", + "201\n", "True\n" ] } @@ -514,7 +514,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "204\n", + "201\n", "True\n" ] } @@ -564,7 +564,18 @@ "cell_type": "code", "execution_count": 11, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "'{\"@odata.context\":\"https://cog-search-zf4fwhz3gdn64.search.windows.net/$metadata#indexers/$entity\",\"@odata.etag\":\"\\\\\"0x8DC7052637CA2AC\\\\\"\",\"name\":\"cogsrch-indexer-files-2\",\"description\":null,\"dataSourceName\":\"cogsrch-datasource-files-2\",\"skillsetName\":\"cogsrch-skillset-files-2\",\"targetIndexName\":\"cogsrch-index-files-2\",\"disabled\":null,\"schedule\":{\"interval\":\"PT30M\",\"startTime\":\"2024-05-09T18:03:38.4035486Z\"},\"parameters\":{\"batchSize\":null,\"maxFailedItems\":-1,\"maxFailedItemsPerBatch\":-1,\"base64EncodeKeys\":null,\"configuration\":{\"dataToExtract\":\"contentAndMetadata\",\"imageAction\":\"generateNormalizedImages\"}},\"fieldMappings\":[{\"sourceFieldName\":\"metadata_title\",\"targetFieldName\":\"title\",\"mappingFunction\":null},{\"sourceFieldName\":\"metadata_storage_name\",\"targetFieldName\":\"name\",\"mappingFunction\":null},{\"sourceFieldName\":\"metadata_storage_path\",\"targetFieldName\":\"location\",\"mappingFunction\":null}],\"outputFieldMappings\":[],\"cache\":null,\"encryptionKey\":null}'" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "# Uncomment if you find an error\n", "# r.text" @@ -579,7 +590,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 14, "metadata": { "tags": [] }, @@ -589,8 +600,8 @@ "output_type": "stream", "text": [ "200\n", - "Status: success\n", - "Items Processed: 0\n", + "Status: inProgress\n", + "Items Processed: 40\n", "True\n" ] } diff --git a/02-LoadCSVOneToMany-ACogSearch.ipynb b/02-LoadCSVOneToMany-ACogSearch.ipynb index 2b9088dc..050df55b 100644 --- a/02-LoadCSVOneToMany-ACogSearch.ipynb +++ b/02-LoadCSVOneToMany-ACogSearch.ipynb @@ -17,7 +17,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "c088c844-1e71-4279-a8fe-a77a007c15c4", "metadata": {}, "outputs": [], @@ -34,21 +34,21 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "c4908539-1d17-46a3-b9e0-dcc46a210c4f", "metadata": {}, "outputs": [], "source": [ "# Define the names for the data source, index and indexer\n", - "datasource_name = \"cogsrch-datasource-csv\"\n", - "skillset_name = \"cogsrch-skillset-csv\"\n", - "index_name = \"cogsrch-index-csv\"\n", - "indexer_name = \"cogsrch-indexer-csv\"" + "datasource_name = \"cogsrch-datasource-csv-2\"\n", + "skillset_name = \"cogsrch-skillset-csv-2\"\n", + "index_name = \"cogsrch-index-csv-2\"\n", + "indexer_name = \"cogsrch-indexer-csv-2\"" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "id": "f2434379-070e-4110-8f5a-7d5bda9a0b7c", "metadata": {}, "outputs": [], @@ -68,7 +68,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "id": "a9fa6c09-a489-4b6d-8c93-5fc26bae63a0", "metadata": {}, "outputs": [ @@ -76,7 +76,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "204\n", + "201\n", "True\n" ] } @@ -120,7 +120,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "id": "2fbbbd0d-3015-4601-9ef1-7008ad168167", "metadata": {}, "outputs": [], @@ -132,7 +132,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "id": "aaac918a-8859-45f5-9519-2cf56bfded88", "metadata": {}, "outputs": [ @@ -148,72 +148,72 @@ "text/html": [ "\n", - "
\n", - " | cord_uid | \n", - "source_x | \n", - "title | \n", - "abstract | \n", - "authors | \n", - "url | \n", + "cord_uid | \n", + "source_x | \n", + "title | \n", + "abstract | \n", + "authors | \n", + "url | \n", "|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", - "ug7v899j | \n", - "PMC | \n", - "Clinical features of culture-p... | \n", - "OBJECTIVE: This retrospective ... | \n", - "Madani, Tariq A; Al-Ghamdi, Ai... | \n", - "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC35282/ | \n", + "0 | \n", + "ug7v899j | \n", + "PMC | \n", + "Clinical features of culture-p... | \n", + "OBJECTIVE: This retrospective ... | \n", + "Madani, Tariq A; Al-Ghamdi, Ai... | \n", + "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC35282/ | \n", "
1 | \n", - "02tnwd4m | \n", - "PMC | \n", - "Nitric oxide: a pro-inflammato... | \n", - "Inflammatory diseases of the r... | \n", - "Vliet, Albert van der; Eiseric... | \n", - "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC59543/ | \n", + "1 | \n", + "02tnwd4m | \n", + "PMC | \n", + "Nitric oxide: a pro-inflammato... | \n", + "Inflammatory diseases of the r... | \n", + "Vliet, Albert van der; Eiseric... | \n", + "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC59543/ | \n", "
2 | \n", - "ejv2xln0 | \n", - "PMC | \n", - "Surfactant protein-D and pulmo... | \n", - "Surfactant protein-D (SP-D) pa... | \n", - "Crouch, Erika C... | \n", - "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC59549/ | \n", + "2 | \n", + "ejv2xln0 | \n", + "PMC | \n", + "Surfactant protein-D and pulmo... | \n", + "Surfactant protein-D (SP-D) pa... | \n", + "Crouch, Erika C... | \n", + "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC59549/ | \n", "
3 | \n", - "2b73a28n | \n", - "PMC | \n", - "Role of endothelin-1 in lung d... | \n", - "Endothelin-1 (ET-1) is a 21 am... | \n", - "Fagan, Karen A; McMurtry, Ivan... | \n", - "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC59574/ | \n", + "3 | \n", + "2b73a28n | \n", + "PMC | \n", + "Role of endothelin-1 in lung d... | \n", + "Endothelin-1 (ET-1) is a 21 am... | \n", + "Fagan, Karen A; McMurtry, Ivan... | \n", + "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC59574/ | \n", "
4 | \n", - "9785vg6d | \n", - "PMC | \n", - "Gene expression in epithelial ... | \n", - "Respiratory syncytial virus (R... | \n", - "Domachowske, Joseph B; Bonvill... | \n", - "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC59580/ | \n", + "4 | \n", + "9785vg6d | \n", + "PMC | \n", + "Gene expression in epithelial ... | \n", + "Respiratory syncytial virus (R... | \n", + "Domachowske, Joseph B; Bonvill... | \n", + "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC59580/ | \n", "