Skip to content

Conversation

cjrh
Copy link
Collaborator

@cjrh cjrh commented Sep 21, 2025

No description provided.

print(results)
_, doc_address = results.hits[0]
d = index.searcher().doc(doc_address)
assert d["id"] == [1]
Copy link

Choose a reason for hiding this comment

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

Pardon my ignorance, but does that mean the document with the lesser weight comes before the one with higher?

Copy link

Choose a reason for hiding this comment

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

Gawd! I see now. This was the query without the weight_by_field keyword argument.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep

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