Closed giabos closed 8 months ago
Hi @giabos - LOAD
doesn't require the @
prefix.
127.0.0.1:6379> FT.CREATE test on hash prefix 1 test: SCHEMA name tag
OK
127.0.0.1:6379> HSET test:1 name steve age 34
(integer) 2
127.0.0.1:6379> FT.AGGREGATE test * LOAD 2 name age
1) (integer) 1
2) 1) "name"
2) "steve"
3) "age"
4) "34"
Are you getting an error? If so what? What does your model look like?
Hi @slorello89 thanks for quick answer!
Yes I'm getting this error:
And then it's working fine when adding the @
Perhaps because we are using a too old redisearch module ? Here is our version:
> module list
name
ft
ver
10425
Yeah I think that's got to be it - they probably pushed that change into 2.0 (which was before my time!) For reference, Redis OM was released with RediSearch 2.2 (which is when JSON indexing was introduced).
This example:
Generates this redisearch query:
where the OptionsSearch field is missing the @ prefix.
This change seems to fix the problem: