File tree 3 files changed +15
-3
lines changed
02 - Web UI Template/CognitiveSearch.UI
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ public DocumentSearchClient(IConfiguration configuration)
56
56
}
57
57
catch ( Exception e )
58
58
{
59
+ // If you get an exceptio here, most likely you have not set your
60
+ // credentials correctly in appsettings.json
59
61
throw new ArgumentException ( e . Message . ToString ( ) ) ;
60
62
}
61
63
}
Original file line number Diff line number Diff line change 6
6
}
7
7
},
8
8
9
+ // Required fields
9
10
"SearchServiceName" : " " ,
10
11
"SearchApiKey" : " " ,
11
12
"SearchIndexName" : " " ,
12
- "InstrumentationKey" : " " ,
13
13
"StorageAccountName" : " " ,
14
14
"StorageAccountKey" : " " ,
15
15
"StorageContainerAddress" : " https://{storage-account-name}.blob.core.windows.net/{container-name}" ,
16
16
"KeyField" : " metadata_storage_path" ,
17
17
"IsPathBase64Encoded" : true ,
18
+
19
+ // Optional instrumentation key
20
+ "InstrumentationKey" : " " ,
21
+
22
+ // Optional container addresses if using more than one indexer:
23
+ "StorageContainerAddress2" : " https://{storage-account-name}.blob.core.windows.net/{container-name}" ,
24
+ "StorageContainerAddress3" : " https://{storage-account-name}.blob.core.windows.net/{container-name}" ,
25
+
26
+ // Optional key to an Azure Maps account if you would like to display the geoLocation field in a map
27
+ "AzureMapsSubscriptionKey" : " " ,
28
+
29
+ // Set to the name of a facetable field you would like to represent as a graph
18
30
"GraphFacet" : " keyPhrases"
19
31
}
Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ function UpdateResults(data) {
42
42
path = result . metadata_storage_path ;
43
43
}
44
44
45
- path = path ;
46
-
47
45
if ( result [ "metadata_storage_name" ] !== undefined ) {
48
46
name = result . metadata_storage_name . split ( "." ) [ 0 ] ;
49
47
}
You can’t perform that action at this time.
0 commit comments