Skip to content

Fix async search apis #1079

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

Merged
merged 3 commits into from
Dec 14, 2021
Merged

Fix async search apis #1079

merged 3 commits into from
Dec 14, 2021

Conversation

delvedor
Copy link
Member

As titled.

@delvedor delvedor requested a review from a team November 30, 2021 15:27
Copy link
Contributor

@philkra philkra left a comment

Choose a reason for hiding this comment

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

LGTM

@delvedor delvedor merged commit f8bf3d7 into main Dec 14, 2021
@delvedor delvedor deleted the fix-async_search branch December 14, 2021 14:47

_score?: double

_score?: double | null
Copy link
Member

Choose a reason for hiding this comment

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

Is it optional, null, or both? When do we have null values and when do we have no value?

Copy link
Member

Choose a reason for hiding this comment

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

Answering my own question after checking the source code: _score and max_score are always there (i.e. not optional) but can indeed be null if no score was calculated because the query was a non-scoring query.

I'll open a follow-up PR to fix this.

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

Successfully merging this pull request may close these issues.

3 participants