redis-developer / introducing-the-geosearch-command

Demo application using a Bulma / Leaflet JS / JavaScript front end and Python / Flask backend to demonstrate the GEOSEARCH command added in Redis 6.2.
https://developer.redis.com/
MIT License
14 stars 13 forks source link

Feature: Add Redisearch to Backend. #14

Closed teezzan closed 2 years ago

teezzan commented 2 years ago

This closes #11. ~It is a work in progress.~ My Twitter handle is @TaiwoHW and my discord handle is Taiwo#7119.

teezzan commented 2 years ago

@simonprickett Here is the piece that is problematic for me. It seems like in redisearch-py, the create_index method of the client takes a field and I am stumped by what the field should be in this case. Thank you

simonprickett commented 2 years ago

@teezzan Hi there, you should be able to use the sample code here to get started:

https://github.com/RediSearch/redisearch-py#defining-a-search-index

You'll want a schema definition that defines the City field as text as a minimum start point, and in your index definition, watch hashes beginning station:

teezzan commented 2 years ago

Thanks for your help @simonprickett. Here we go!

SuzeShardlow commented 2 years ago

Thanks, @teezzan!