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

feat: adds optional sorting parameter to FilterQuery #148

Merged
merged 3 commits into from
May 15, 2024

Conversation

justin-cechmanek
Copy link
Collaborator

This PR adds the ability to sort results by a hash field if the field name is passed as a parameter to filter queries.

Copy link
Collaborator

@tylerhutcherson tylerhutcherson left a comment

Choose a reason for hiding this comment

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

let's add to vector queries as well since you can sort the resulting set by any given field in the index

@@ -136,6 +136,7 @@ def __init__(
return_fields: Optional[List[str]] = None,
num_results: int = 10,
dialect: int = 2,
sort_by: Optional[str] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's also add this support to vector queries too

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added to Vector and Range queries also

Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks!

@tylerhutcherson tylerhutcherson added the enhancement New feature or request label May 15, 2024
@tylerhutcherson tylerhutcherson self-requested a review May 15, 2024 19:21
@tylerhutcherson tylerhutcherson merged commit 458be76 into main May 15, 2024
20 checks passed
@tylerhutcherson tylerhutcherson deleted the jc/sort-query-results branch May 15, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants