Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add rankingScoreThreshold to searchGet #1673

Merged

Conversation

mdubus
Copy link
Member

@mdubus mdubus commented Jun 18, 2024

Pull Request

Related issue

Related to #1665

What does this PR do?

  • Add rankingScoreThreshold to searchGet + add related test

PR checklist

Please check if your PR fulfills the following requirements:

  • Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • Have you read the contributing guidelines?
  • Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

@mdubus mdubus requested a review from curquiza June 18, 2024 09:03
@@ -125,9 +125,9 @@ export type SearchParams = Query &
vector?: number[] | null;
showRankingScore?: boolean;
showRankingScoreDetails?: boolean;
rankingScoreThreshold?: number;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just grouping the rankingScore stuff here for readibility :)

@@ -483,11 +483,34 @@ describe.each([

test(`${permission} key: search without vectors`, async () => {
const client = await getClient(permission);
const response = await client.index(index.uid).search('prince', {});
const response = await client.index(index.uid).searchGet('prince', {});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing a bad testing introduced earlier 🙈

Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! I missed it!

@curquiza curquiza merged commit f3bb65b into bump-meilisearch-v1.9.0 Jun 18, 2024
6 checks passed
@curquiza curquiza deleted the add_rankingScoreThreshold_to_getSearch branch June 18, 2024 15:32
@curquiza curquiza added the enhancement New feature or request label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants