Skip to content

Commit

Permalink
Add tests for 'hybrid' in search params
Browse files Browse the repository at this point in the history
  • Loading branch information
Strift committed Feb 7, 2024
1 parent d980bed commit 98a61f6
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,22 @@ describe('Parameters adapter', () => {
meiliSearchParams.matchingStrategy
)
})

test('hybrid can be overriden in the search parameters', () => {
const hybridSearchConfig = {
semanticRatio: 0,
embedder: 'default',
}

const searchParams = adaptSearchParams({
...DEFAULT_CONTEXT,
meiliSearchParams: {
hybrid: hybridSearchConfig,
},
})

expect(searchParams.hybrid).toBe(hybridSearchConfig)
})
})

describe('Geo filter adapter', () => {
Expand Down

0 comments on commit 98a61f6

Please sign in to comment.