redis / redis-om-spring

Spring Data Redis extensions for better search, documents models, and more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The SearchOperations<String>.search() interface does not set the returnFields attribute; why does the result set not include any field data?

mayipepsi opened this issue · comments

commented
image
commented

Client command: FT.SEARCH idx "*"

@mayipepsi the Query class is from the Jedis library, this ticket belongs there. But from visual inspection my guess is you are missing the "$" on the fields for the JSON object. Remember Jedis is a lower-level of abstraction library which works as close to the raw commands as possible. https://github.com/redis/jedis/blob/7aad706e61f8686e5801179689dc6f790ccbb196/src/test/java/redis/clients/jedis/modules/search/JsonSearchTest.java#L193