RediSearch / redisearch-go

Go client for RediSearch
https://redisearch.io
BSD 3-Clause "New" or "Revised" License
293 stars 65 forks source link

How to reference existing JSON index #156

Closed marcoroganovic closed 2 years ago

marcoroganovic commented 2 years ago

Hi,

I have read through the other issues but I couldn't find answer to this question. How to let client know to use JSON instead of default HASH?

So basically I have created index in other language, and I need to consume that index in Go using this package, but search queries don't work when I have switched from HASH to JSON definition (during creation in other language).

Best, Marko

gkorland commented 2 years ago

Please see https://redis.io/docs/stack/json/indexing_json/

Avital-Fine commented 2 years ago

Hey! You can use this method to create the index with ON JSON instead of ON HASH