diff --git a/src/app/core/data/item-data.service.ts b/src/app/core/data/item-data.service.ts index 5bc582c86c5..d90a6a4707b 100644 --- a/src/app/core/data/item-data.service.ts +++ b/src/app/core/data/item-data.service.ts @@ -46,8 +46,8 @@ import { RestRequestMethod } from './rest-request-method'; import { CreateData, CreateDataImpl } from './base/create-data'; import { RequestParam } from '../cache/models/request-param.model'; import { dataService } from './base/data-service.decorator'; -import {SearchData} from './base/search-data'; -import {FollowLinkConfig} from '../../shared/utils/follow-link-config.model'; +import { SearchData, SearchDataImpl } from './base/search-data'; +import { FollowLinkConfig } from '../../shared/utils/follow-link-config.model'; /** * An abstract service for CRUD operations on Items @@ -420,6 +420,7 @@ export class ItemDataService extends BaseItemDataService { protected bundleService: BundleDataService, ) { super('items', requestService, rdbService, objectCache, halService, notificationsService, comparator, browseService, bundleService); + this.searchData = new SearchDataImpl(this.linkPath, requestService, rdbService, objectCache, halService, this.responseMsToLive); } searchBy(searchMethod: string, options?: FindListOptions, useCachedVersionIfAvailable?: boolean, reRequestOnStale?: boolean, ...linksToFollow: FollowLinkConfig[]): Observable>> {