File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
packages/instant-meilisearch/src
adapter/search-request-adapter Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,12 @@ export function MeiliParamsCreator(searchContext: SearchContext) {
232232 meiliSearchParams . attributesToSearchOn = value
233233 }
234234 } ,
235+ addHybridSearch ( ) {
236+ const value = overrideParams ?. hybrid
237+ if ( value !== undefined ) {
238+ meiliSearchParams . hybrid = value
239+ }
240+ } ,
235241 }
236242}
237243
@@ -263,6 +269,7 @@ export function adaptSearchParams(
263269 meilisearchParams . addMatchingStrategy ( )
264270 meilisearchParams . addShowRankingScore ( )
265271 meilisearchParams . addAttributesToSearchOn ( )
272+ meilisearchParams . addHybridSearch ( )
266273
267274 return meilisearchParams . getParams ( )
268275}
Original file line number Diff line number Diff line change @@ -79,9 +79,11 @@ export function instantMeiliSearch(
7979 const instantMeilisearchConfig = getInstantMeilisearchConfig (
8080 instantMeiliSearchOptions
8181 )
82+
8283 return {
8384 setMeiliSearchParams : ( params ) : void => {
8485 const { meiliSearchParams } = instantMeiliSearchOptions
86+
8587 instantMeiliSearchOptions . meiliSearchParams =
8688 meiliSearchParams === undefined
8789 ? params
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ export type OverridableMeiliSearchSearchParameters = Pick<
5353 | 'matchingStrategy'
5454 | 'showRankingScore'
5555 | 'attributesToSearchOn'
56+ | 'hybrid'
5657>
5758
5859type BaseInstantMeiliSearchOptions = {
You can’t perform that action at this time.
0 commit comments