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

Search pagination and scoring #80

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

nappa85
Copy link
Contributor

@nappa85 nappa85 commented Jan 24, 2023

My bad for this second PR, but I also think it's better to separate concepts.
This PR is kind-of more invasive than the previous, it introduces pagination on search queries and, to not insert a score field in every entity, introduces a SearchEntity wrapper that leverages serde's flatten to be transparent on deserialization.

What I don't really like here is having inner field as public, since its fields are already accessible via Deref and DerefMut.
What do you think about it? Maybe an impl<T> Into<T> for SearchEntity<T> would be better?

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.

None yet

1 participant