-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Changed default dialect to 2 #3467
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.
Overall, looks good. See one suggestion in the inline comment.
redis/commands/search/query.py
Outdated
@@ -40,7 +40,7 @@ def __init__(self, query_string: str) -> None: | |||
self._highlight_fields: List = [] | |||
self._language: Optional[str] = None | |||
self._expander: Optional[str] = None | |||
self._dialect: Optional[int] = None | |||
self._dialect: int = 2 |
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.
I'd suggest creating a new file like dialect.py
and defining this magic number as a constant there.
Pull Request check-list
Please make sure to review and check all of these items:
NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
The default DIALECT parameter for Search and AggregationQuery has been changed to 2