-
Notifications
You must be signed in to change notification settings - Fork 42
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
Refactor query classes #211
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM left a couple comments if we want to make a couple things more clear
from redisvl.query.filter import Tag | ||
# Initialize the base query with the full query string constructed from the filter expression | ||
query_string = self._build_query_string() | ||
super().__init__(query_string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should maybe call out somewhere that we are extending the RedisQuery now which is why it is like this
In order to support more advanced query params/settings of the Redis query engine, we needed a more flexible and customizable way to build RedisVL queries.
This PR introduces a simple refactor to inherit all redis-py Query module capabilities for each query type.
Source: https://github.com/redis/redis-py/blob/master/redis/commands/search/query.py
Updated user guide is still in flight **