You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flavour is a tag and it is array of strings. This how I declared in schema ( $.sfl.[] as flavour TAG SEPARATOR ','). I can see the results without aggregation step but with aggregation i get an error message Value was not found in result
` const { results, total } = await client.ft.AGGREGATE(redisIndex, '', {
LOAD: ['@dataset', '@region', '@Country', '@flavour'],
STEPS: [
{
type: AggregateSteps.FILTER,
expression: '@dataset == 1'
},
{
type: AggregateSteps.FILTER,
expression: '@region == "US"'
},
{
type: AggregateSteps.FILTER,
expression: '@flavour == "Chocolate"'
},
{
type: AggregateSteps.GROUPBY,
properties: ['@Country'],
REDUCE: [
{
type: AggregateGroupByReducers.COUNT,
AS: 'count'
}
]
}
Description
flavour is a tag and it is array of strings. This how I declared in schema ( $.sfl.[] as flavour TAG SEPARATOR ','). I can see the results without aggregation step but with aggregation i get an error message Value was not found in result
` const { results, total } = await client.ft.AGGREGATE(redisIndex, '', {
LOAD: ['@dataset', '@region', '@Country', '@flavour'],
STEPS: [
{
type: AggregateSteps.FILTER,
expression: '@dataset == 1'
},
{
type: AggregateSteps.FILTER,
expression: '@region == "US"'
},
{
type: AggregateSteps.FILTER,
expression: '@flavour == "Chocolate"'
},
{
type: AggregateSteps.GROUPBY,
properties: ['@Country'],
REDUCE: [
{
type: AggregateGroupByReducers.COUNT,
AS: 'count'
}
]
}
Node.js Version
v20.12.2
Redis Server Version
redis_version:7.2.4
Node Redis Version
"redis": "^4.6.13"
Platform
linux
Logs
The text was updated successfully, but these errors were encountered: