diff --git a/packages/common/src/search/_internal/portalSearchGroups.ts b/packages/common/src/search/_internal/portalSearchGroups.ts index d64e79c18ea..5aca36b6c85 100644 --- a/packages/common/src/search/_internal/portalSearchGroups.ts +++ b/packages/common/src/search/_internal/portalSearchGroups.ts @@ -105,6 +105,7 @@ async function searchPortal( resp.total, searchPortal ), + so: searchOptions, }; } diff --git a/packages/common/src/search/_internal/portalSearchItems.ts b/packages/common/src/search/_internal/portalSearchItems.ts index d25fc2f5204..5e6d5b84862 100644 --- a/packages/common/src/search/_internal/portalSearchItems.ts +++ b/packages/common/src/search/_internal/portalSearchItems.ts @@ -208,6 +208,7 @@ async function searchPortalAsHubSearchResult( resp.total, searchPortalAsHubSearchResult ), + so: searchOptions, }; } diff --git a/packages/common/src/search/_internal/portalSearchUsers.ts b/packages/common/src/search/_internal/portalSearchUsers.ts index 1d6254ee34b..4848580483d 100644 --- a/packages/common/src/search/_internal/portalSearchUsers.ts +++ b/packages/common/src/search/_internal/portalSearchUsers.ts @@ -203,6 +203,7 @@ async function searchPortal( resp.total, searchPortal ), + so: searchOptions, }; } @@ -232,6 +233,7 @@ async function searchCommunity( resp.total, searchCommunity ), + so: searchOptions, }; } diff --git a/packages/common/src/search/types/IHubSearchResponse.ts b/packages/common/src/search/types/IHubSearchResponse.ts index 5fc89183e5b..e5e81c233fd 100644 --- a/packages/common/src/search/types/IHubSearchResponse.ts +++ b/packages/common/src/search/types/IHubSearchResponse.ts @@ -1,3 +1,4 @@ +import { ISearchOptions } from "@esri/arcgis-rest-portal"; import { IMessage } from "../../types/IMessage"; import { IHubAggregation } from "./IHubAggregation"; @@ -36,4 +37,9 @@ export interface IHubSearchResponse { * Array of messages / warnings */ messages?: IMessage[]; + + /** + * Search options metadata used to fetch the results + */ + so?: ISearchOptions; }