-
Notifications
You must be signed in to change notification settings - Fork 5
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
Object update doesn't update document of index in Docker #11
Comments
FYI, for my case, syncindex and clearindex also worked well, just the object update doesn't work |
Hi, thanks for submitting an issue request. I have a few questions about your setup, and I would like to see your application code as well.
I would also like to see your model code and settings code as well. It would help me get a fuller picture of what exactly you're facing. |
Thank you for replying. You are correct, I am using a Docker Compose environment. I currently use signals.py with post_save and pre_delete to update documents instead. Since the create indexes, syncindex, and clearindex functions work well, indicating that Django can connect to MeiliSearch, the issue seems to be that updates to instances have no effect. and here is my code: settings.py:
docker-compose.yaml:
|
Is there anything in the Meilisearch log to indicate a failed updated? I ask because I know the async implementation in Meilisearch can be a pain. |
Actually there are no logs generated for instance updates in Meilisearch. Only settings changes are logged when using Django's runserver and the specified commands. |
What happens when you run the program with SYNC set to True? It could be an issue with the async |
The same issue persists, seems there is no response from MeiliSearch.. Currently, I am using signals.py to handle this for me, with SYNC = False
|
Interesting, what does the model definition look like? I assume you're inheriting the correct model, but I'm trying to brainstorm what might be happening. Thank you for being patient. |
Thank you for your assistance! Here is the model:
|
I think the issue is related to the |
I implemented a simple
|
This functionality worked well when running locally without Docker.
I'm facing an issue (only in Docker) with my Django application where updates to the index settings in Meilisearch are successful, but the actual document updates for my Job model are not being updated in the index.
In my settings.py, I have configured Meilisearch HOST to meili's container_name, seems it doesn't accept 'localhost'.
Environment:
Django Version: 4.2
Docker Version: 4.37.1
Meilisearch Version: 0.33.0
Django-Meili Version: 0.0.8
The text was updated successfully, but these errors were encountered: