Skip to content

Commit

Permalink
remove scoreDetails experimental feature activation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasvienot committed Feb 19, 2024
1 parent 3dbb1e2 commit 15d92f9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tests/search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,18 +271,8 @@ describe.each([
expect(hit).toHaveProperty('_rankingScore')
})

test(`${permission} key: search with showRankingScoreDetails enabled`, async () => {
test(`${permission} key: search with showRankingScoreDetails`, async () => {
const client = await getClient(permission)
const key = await getKey(permission)

await fetch(`${HOST}/experimental-features`, {
body: JSON.stringify({ scoreDetails: true }),
headers: {
Authorization: `Bearer ${key}`,
'Content-Type': 'application/json',
},
method: 'PATCH',
})

const response = await client.index(index.uid).search('prince', {
showRankingScoreDetails: true,
Expand Down

0 comments on commit 15d92f9

Please sign in to comment.