Skip to content

Commit 84a5dcd

Browse files
committed
Add all entities to typesense
1 parent 223fb0f commit 84a5dcd

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • src/app/[locale]/(logged-out)/search/components/Search

src/app/[locale]/(logged-out)/search/components/Search/Search.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,17 +261,14 @@ const Search = ({ filters, schema }: SearchProps) => {
261261

262262
const isDatasets = queryParams.type === SearchCategory.DATASETS;
263263
const isPublications = queryParams.type === SearchCategory.PUBLICATIONS;
264-
const isDataCustodians =
265-
queryParams.type === SearchCategory.DATA_CUSTODIANS;
266264
const dataSource = queryParams.dataSource || HDRUK_SOURCE_VALUE;
267265
const isExternalSourceSelected =
268266
isExternalSourcesEnabled && dataSource !== HDRUK_SOURCE_VALUE;
269267
const externalSearchEnabled = isDatasets && isExternalSourcesEnabled;
270268
const isTypesenseSearch =
271269
!!isTypesenseSearchEnabled &&
272-
(isDataCustodians ||
273-
(isPublications &&
274-
queryParams.source === GATEWAY_SOURCE_FIELD));
270+
!isDatasets &&
271+
(!isPublications || queryParams.source === GATEWAY_SOURCE_FIELD);
275272

276273
const ardcSearchUrl = `https://researchdata.edu.au/health/search?filter-type=all-fields${
277274
queryParams.query ? `&q=${encodeURIComponent(queryParams.query)}` : ""

0 commit comments

Comments
 (0)