diff --git a/packages/@sanity/base/src/search/index.ts b/packages/@sanity/base/src/search/index.ts index a0b8907066a..034191824b3 100644 --- a/packages/@sanity/base/src/search/index.ts +++ b/packages/@sanity/base/src/search/index.ts @@ -6,14 +6,6 @@ import {versionedClient} from '../client/versionedClient' import {getSearchableTypes} from './common/utils' import {createWeightedSearch} from './weighted/createWeightedSearch' -export type { - SearchOptions, - SearchSort, - SearchTerms, - SearchableType, - WeightedHit, -} from './weighted/types' - // Use >= 2021-03-25 for pt::text() support const searchClient = versionedClient.withConfig({ apiVersion: '2021-03-25', @@ -23,3 +15,5 @@ export default createWeightedSearch(getSearchableTypes(schema), searchClient, { unique: true, tag: 'search.global', }) + +export * from './weighted' diff --git a/packages/@sanity/base/src/search/weighted/index.ts b/packages/@sanity/base/src/search/weighted/index.ts index 7267e52aa52..d72fd65de2d 100644 --- a/packages/@sanity/base/src/search/weighted/index.ts +++ b/packages/@sanity/base/src/search/weighted/index.ts @@ -1 +1,3 @@ export {createWeightedSearch} from './createWeightedSearch' +export {createSearchQuery} from './createSearchQuery' +export * from './types'