Skip to content

Commit be8a94c

Browse files
committed
More indices
1 parent c1fa7ce commit be8a94c

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

src/stories/FairDOElasticSearch.stories.tsx

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,47 @@ export default meta
1313
type Story = StoryObj<typeof meta>
1414

1515
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 = {
1657
debug: false,
1758
alwaysSearchOnInitialLoad: true,
1859
// host: "https://matwerk.datamanager.kit.edu/search-proxy/api/v1",
@@ -59,3 +100,10 @@ export const DemoElastic: Story = {
59100
debug: false
60101
}
61102
}
103+
104+
export const DemoElastic2: Story = {
105+
args: {
106+
config: demoConfig2,
107+
debug: false
108+
}
109+
}

0 commit comments

Comments
 (0)