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

WITHSCHEMA option does not exist in RediSearch 2.0.6 #122

Open
abrookins opened this issue Apr 26, 2021 · 0 comments
Open

WITHSCHEMA option does not exist in RediSearch 2.0.6 #122

abrookins opened this issue Apr 26, 2021 · 0 comments

Comments

@abrookins
Copy link
Contributor

abrookins commented Apr 26, 2021

The following query raises a ResponseError:

In [50]: from redisearch.aggregation import AggregateRequest, Asc
    ...: 
    ...: req = AggregateRequest('*').group_by(
    ...:     ['@published_year'], reducers.avg('average_rating').alias('average_rating_for_year')
    ...: ).sort_by(
    ...:     Asc('@average_rating_for_year')
    ...: ).limit(0, 10).filter('@published_year > 0').with_schema()

In [51]: resp = c.aggregate(req)

....

ResponseError: Unknown argument `WITHSCHEMA` at position 1 for <main>

This option does not appear in our docs on FT.AGGREGATE. Is it a new feature or an old one, I wonder?

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

No branches or pull requests

2 participants