Skip to content

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