-
Notifications
You must be signed in to change notification settings - Fork 63
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
Aggregations API #21
Comments
@mnunberg filter expressions are still not supported on the python client correct? Example from documentation.
|
Hello, Under the
However, looking at the current import redisearch
aggregate_request = redisearch.aggregation.AggregateRequest()
# Call 1
aggregate_request.apply(foo="@bar / 2").group_by("@foo", redisearch.reducers.count())
# or Call 2
# aggregate_request.group_by("@foo", redisearch.reducers.count()).apply(foo="@bar / 2")
print(aggregate_request.build_args()) would have 2 calls (
However, shouldn't the expected behaviour of
i.e. the order of the keywords will be dependant upon the order of call?
The reason why this is an issue is that
whereas
Any help to get around this issue is greatly appreciated. Thanks. |
hi there @stryt2, we were discussing the same error internally as we're revising this client and extending to redisearch-go client ( trying to make it have the same look and feel like this one ) and found the exact same problem as you. |
Glad to hear that. Thanks very much. |
This is a proposed API for aggregations.
The aggregation pipeline is very suitable for a builder/fluent style API. It basically includes the following elements, repeating and transforming the pipeline:
These are chained repeatably to transform the pipeline. So here's what I have in mind:
The text was updated successfully, but these errors were encountered: