diff --git a/packages/datagateway-search/src/card/datasetSearchCardView.component.tsx b/packages/datagateway-search/src/card/datasetSearchCardView.component.tsx index a232d2d6d..59b275c24 100644 --- a/packages/datagateway-search/src/card/datasetSearchCardView.component.tsx +++ b/packages/datagateway-search/src/card/datasetSearchCardView.component.tsx @@ -89,7 +89,17 @@ const DatasetCardView = (props: DatasetCardViewProps): React.ReactElement => { minCount: minNumResults, maxCount: maxNumResults, restrict, - facets: [{ target: 'Dataset' }], + facets: [ + { target: 'Dataset' }, + { + target: 'DatasetParameter', + dimensions: [{ dimension: 'type.name' }], + }, + { + target: 'InvestigationInstrument', + dimensions: [{ dimension: 'instrument.name' }], + }, + ], }, filters ); diff --git a/packages/datagateway-search/src/card/investigationSearchCardView.component.tsx b/packages/datagateway-search/src/card/investigationSearchCardView.component.tsx index d4c83e4d1..1cddad2d6 100644 --- a/packages/datagateway-search/src/card/investigationSearchCardView.component.tsx +++ b/packages/datagateway-search/src/card/investigationSearchCardView.component.tsx @@ -112,7 +112,11 @@ const InvestigationCardView = ( }, { target: 'Sample', - dimensions: [{ dimension: 'type.name' }], + dimensions: [{ dimension: 'sample.type.name' }], + }, + { + target: 'InvestigationInstrument', + dimensions: [{ dimension: 'instrument.name' }], }, ], }, diff --git a/packages/datagateway-search/src/table/datafileSearchTable.component.tsx b/packages/datagateway-search/src/table/datafileSearchTable.component.tsx index 30e0a0f6f..0e4d9b768 100644 --- a/packages/datagateway-search/src/table/datafileSearchTable.component.tsx +++ b/packages/datagateway-search/src/table/datafileSearchTable.component.tsx @@ -80,6 +80,10 @@ const DatafileSearchTable = ( target: 'DatafileParameter', dimensions: [{ dimension: 'type.name' }], }, + { + target: 'InvestigationInstrument', + dimensions: [{ dimension: 'instrument.name' }], + }, ], }, filters, @@ -190,7 +194,7 @@ const DatafileSearchTable = ( instrumentId: datafileData.investigationinstrument?.[0]?.['instrument.id'], facilityCycleId: - datafileData.investigationfacilitycycle?.[0][ + datafileData.investigationfacilitycycle?.[0]?.[ 'facilityCycle.id' ], }, @@ -239,7 +243,7 @@ const DatafileSearchTable = ( instrumentId: datafileData.investigationinstrument?.[0]?.['instrument.id'], facilityCycleId: - datafileData.investigationfacilitycycle?.[0][ + datafileData.investigationfacilitycycle?.[0]?.[ 'facilityCycle.id' ], }, diff --git a/packages/datagateway-search/src/table/datasetSearchTable.component.tsx b/packages/datagateway-search/src/table/datasetSearchTable.component.tsx index 602c5722d..d251decd8 100644 --- a/packages/datagateway-search/src/table/datasetSearchTable.component.tsx +++ b/packages/datagateway-search/src/table/datasetSearchTable.component.tsx @@ -75,7 +75,17 @@ const DatasetSearchTable = ({ minCount: minNumResults, maxCount: maxNumResults, restrict, - facets: [{ target: 'Dataset' }], + facets: [ + { target: 'Dataset' }, + { + target: 'DatasetParameter', + dimensions: [{ dimension: 'type.name' }], + }, + { + target: 'InvestigationInstrument', + dimensions: [{ dimension: 'instrument.name' }], + }, + ], }, filters, { enabled: dataset } diff --git a/packages/datagateway-search/src/table/investigationSearchTable.component.tsx b/packages/datagateway-search/src/table/investigationSearchTable.component.tsx index e693d0739..7ea3163aa 100644 --- a/packages/datagateway-search/src/table/investigationSearchTable.component.tsx +++ b/packages/datagateway-search/src/table/investigationSearchTable.component.tsx @@ -88,7 +88,11 @@ const InvestigationSearchTable = ( }, { target: 'Sample', - dimensions: [{ dimension: 'type.name' }], + dimensions: [{ dimension: 'sample.type.name' }], + }, + { + target: 'InvestigationInstrument', + dimensions: [{ dimension: 'instrument.name' }], }, ], },