Hello everyone. I feel like this is going to be a particularly stupid question, but I've been trying to replicate the Geospatial indexing example for GEOSHAPE (https://redis.io/docs/latest/develop/ai/search-and-query/indexing/geoindex/#geoshape) without much success. Maybe I'm missing a module or something? I'm on Redis 8.0.3 (with docker run -d --name redis -p 6379:6379 redis:8.0.3), and I can create the index and set the JSON successfully, but FT.SEARCH line returns an empty set. The GEO example does work. Does anyone have an idea of what I'm doing wrong?
#[SOLVED] Help with Geospatial indexnig
6 messages · Page 1 of 1 (latest)
Hey Rafael. This Redis image should give you all the necessary modules. If you run "MODULE LIST" on the cli or workbench you should be able to see a module named "search" in the reply.
Also, make sure the Search Index has been created. When you run FT._LIST, you should be able to see your index there.
And finally, if you run FT.INFO you should be able to see the schema. An example:
Let me know if you have the schema and we can follow from there.
Hello! Sorry for the late reply, and thanks for the heads-up! I tried repeating the process from scratch recently and got the expected result this time. I have a feeling a might have idiotically skipped the last few JSON.SET calls while trying to replicate the GEOSHAPE example. 🤨 It's the only explanation I can think of for GEO to have worked as expected but not GEOSHAPE. Anyway, thanks again for your time!