Closed Zekemaz closed 1 month ago
Hi ! Did you find a solution for this ? On my prod env I have same problem and don't understand why
Hey, I am sorry, I will not be able to help you. I quit my job before the problem was solved.
Hi, I found a solution, I use docker in production too and it work ^^
Would you mind telling me how you fixed the problem?
Thank you
Describe the bug
I'm working on a news project on symfony 5.4. In my development environment I use docker but in my prod environment I do not (not my choice) In my development environment everything runs smoothly, I use typesense within a docker container with the image typesense/typesense:0.22.1.
in production environment I'm using acseo/TypesenseBundle^0.6.6 but when I update an article I get the following error :
request.CRITICAL: Uncaught PHP Exception Typesense\Exceptions\ObjectNotFound: "Could not find a document with id: 12555" at /httpdocs/vendor/typesense/typesense-php/src/ApiCall.php line 347 {"exception":"[object] (Typesense\\Exceptions\\ObjectNotFound(code: 0): Could not find a document with id: 12555 at /httpdocs/vendor/typesense/typesense-php/src/ApiCall.php:347)"} []
Although when I lauch the following commands,
symfony console typesense:create
thensymfony console typesense:import
I get a success message saying[OK] 16024 elements populated in 129.91 seconds
, the search engine does not seem to be working.Expected behavior When I search for an element by title within the search bar I do not get the expected result. I get other articles which have the same keyword present in my query but I don't have the expected article.
For example if I look for an article "The current state of the country" I would expect to get all articles containing those words but especially the one having this exact title. But I only get the articles containing some keywords. I hope I'm making myself clear.
Second Expected behavior When I update an article or any other data used with typesense I would like for it to update by itself and not return a 500 server error saying the document with ID could not be found.
Questions
Additional context Here is my typesense configuration