-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use redisearch on cluster #412
Comments
Just checking in since its been 3 months. Any movement on this? |
I unfortunately also have this problem when using a cluster. Is there already a solution for this? |
I too am trying to get RediSearch with Python OM working on a Redis Cluster. However I ran into this problem a different way. I was setting the database connection in my model via it's Meta class as follows: from redis import RedisCluster
class MyModel(JsonModel):
field: str = Field(index=True)
class Meta:
database = RedisCluster(
host=os.environ["REDIS_DB_HOST"],
port=os.environ["REDIS_DB_PORT"],
username=os.environ["REDIS_DB_USER"],
password=os.environ["REDIS_DB_PASS"],
) And when I try to just run
However, if I instead replace the database setup as follows, then the Migrator seems to work just fine: from redis import Redis
class MyModel(JsonModel):
field: str = Field(index=True)
class Meta:
database = Redis(
host=os.environ["REDIS_DB_HOST"],
port=os.environ["REDIS_DB_PORT"],
username=os.environ["REDIS_DB_USER"],
password=os.environ["REDIS_DB_PASS"],
) Could it be as simple as the fact that the Python OM implementation doesn't support the |
Hi Everyone,
I've been trying out redis-om and I like the simplicity it offers. Thank you for taking the time to write it.
I have run into an issue though. When trying to run the following line of code
Customer.find(Customer.age == 38).all()
The above line of code works fine for a single redis instance. However, in cluster mode which redisearch should be using RSCoordinator under the hood I get redis moved errors.
redis.exceptions.ResponseError: MOVED 14592 10.9.9.6:7003
I have made sure to run: Migrator.run()
And I don't see what other issue I could have run into other than RSCoordinator not responding as its supposed in the redis-om backend. I come to this conclusion since save() & get() work just fine.
The text was updated successfully, but these errors were encountered: