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(types): add reranking engine settings to types #1378

Merged
merged 2 commits into from Jan 7, 2022

Conversation

alphonseb
Copy link
Contributor

feat(types): add reranking engine settings to types

What

Updating the Settings and SearchOptions types to add two reranking properties:

  • enableReRanking (already existed in SearchOptions)
  • reRankingApplyFilter

Why

These settings already exist on the engine for some time. They are already used in the dashboard but without these type we are building up quite a few "@ts-ignore".

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 6, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7b4d607:

Sandbox Source
javascript-client-app Configuration

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Small comment

packages/client-search/src/types/Settings.ts Show resolved Hide resolved
@alphonseb
Copy link
Contributor Author

Also I'm not sure why some unit tests are failing, I don't think what I changed interacted with those?

@shortcuts
Copy link
Member

Also I'm not sure why some unit tests are failing, I don't think what I changed interacted with those?

Some of the tests are flaky, since they are shared between the API clients. If a failing test is not related to your changes, then it's good :D

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants