Skip to content

docs: fix scoreFn example in README.md#153

Open
ilyasmez wants to merge 1 commit into
farzher:masterfrom
ilyasmez:patch-1
Open

docs: fix scoreFn example in README.md#153
ilyasmez wants to merge 1 commit into
farzher:masterfrom
ilyasmez:patch-1

Conversation

@ilyasmez

Copy link
Copy Markdown

r.score * r.obj.bookmarked will be processed first, so this example will always result in a score of 1 or 2 based on the value of r.obj.bookmarked, which I don't think is the intended behavior.
My assumption is that the example want to demonstrate how to relatively bias the score of a record and not actually set an absolute value.

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.

1 participant