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

fix: throw error if key_field is indexed #1520

Merged
merged 2 commits into from
Aug 13, 2024
Merged

fix: throw error if key_field is indexed #1520

merged 2 commits into from
Aug 13, 2024

Conversation

rebasedming
Copy link
Collaborator

@rebasedming rebasedming commented Aug 12, 2024

Ticket(s) Closed

  • Closes #

What

Right now if a key_field is passed into _fields, the server throws an error and the user gets an opaque crash error. Now, we catch this in create_bm25 and display a better error. I've also updated the docs and removed some accidentally committed debug statements.

Why

How

Tests

See added test to invalid_create_bm25

@rebasedming rebasedming requested a review from neilyio as a code owner August 12, 2024 22:09
@rebasedming rebasedming changed the title fix: remove debug statements fix: throw error if key_field is indexed Aug 12, 2024
@rebasedming rebasedming merged commit 6b82968 into dev Aug 13, 2024
13 checks passed
@rebasedming rebasedming deleted the fix/debug branch August 13, 2024 01:23
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.

2 participants