@@ -13,6 +13,47 @@ export default meta
13
13
type Story = StoryObj < typeof meta >
14
14
15
15
const demoConfig : FairDOConfig = {
16
+ debug : false ,
17
+ alwaysSearchOnInitialLoad : true ,
18
+ // host: "https://matwerk.datamanager.kit.edu/search-proxy/api/v1",
19
+ host : "https://ddaa9283-f114-4496-b6ed-af12ee34b107.ka.bw-cloud-instance.org:9200" ,
20
+ apiKey : "VG9NNFNwUUJyWWdtamJ6UGExcjY6aXhKUkk1M0xTT1dTS2xzN3daQjA3UQ==" ,
21
+ indices : [
22
+ {
23
+ name : "fdo-test-1" ,
24
+ facets : [
25
+ {
26
+ key : "resourceType.keyword" ,
27
+ label : "Resource Type"
28
+ } ,
29
+ {
30
+ key : "digitalObjectType.keyword" ,
31
+ label : "File Type" ,
32
+ usePidResolver : true
33
+ } ,
34
+ {
35
+ key : "hadPrimarySource.keyword" ,
36
+ label : "Source" ,
37
+ prettyPrintURLs : true
38
+ } ,
39
+ {
40
+ key : "licenseURL.keyword" ,
41
+ label : "License" ,
42
+ prettyPrintURLs : true
43
+ } ,
44
+ {
45
+ key : "NMR_Method.keyword" ,
46
+ label : "NMR Method" ,
47
+ prettyPrintURLs : true
48
+ }
49
+ ] ,
50
+ resultFields : [ ] , // Leave empty to get all fields
51
+ searchFields : [ "name" , "pid" , "hasMetadata" , "isMetadataFor" , "NMR_Method" ]
52
+ }
53
+ ]
54
+ }
55
+
56
+ const demoConfig2 : FairDOConfig = {
16
57
debug : false ,
17
58
alwaysSearchOnInitialLoad : true ,
18
59
// host: "https://matwerk.datamanager.kit.edu/search-proxy/api/v1",
@@ -59,3 +100,10 @@ export const DemoElastic: Story = {
59
100
debug : false
60
101
}
61
102
}
103
+
104
+ export const DemoElastic2 : Story = {
105
+ args : {
106
+ config : demoConfig2 ,
107
+ debug : false
108
+ }
109
+ }
0 commit comments