Open itsTKRaz opened 5 months ago
@itsTKRaz you need to run the indexer first, so you would have data in typesense. I'm going to create a new issue to let people know if this error happens.
I've created a new issue to address this: #478
@itsTKRaz you need to run the indexer first, so you would have data in typesense. I'm going to create a new issue to let people know if this error happens.
I feel like a lot of the documentation is unclear in regards to this, which made no mention of running the indexer. And some of the links in the wiki give 404 errors.
To fill the data in typesense and, is this the required command to run, just to clarify? php artisan indexer:anime
or are there other recommended commands to run to get started correctly that I'm missing?
I've already answered somewhat on discord: https://discord.com/channels/460491088004907029/1200149578406703236/1200235685727195166
Just to elaborate a bit more, and to make a note for myself of "missing things from docs":
php artisan indexer:anime
php artisan indexer:manga
php artisan indexer:common
php artisan indexer:genres
php artisan indexer:producers
Note: You can make it fetch the latest with the "--reverse" command line option. Also please note that sometimes the
php artisan indexer:anime-sweep
andphp artisan indexer:manga-sweep
commands needs to be ran to remove removed items from mongodb. By removed items I mean items removed on MAL side.
Is there an existing issue for this?
Current Behavior
The API has returned an error:
Typesense\Exceptions\ObjectNotFound
Status code:0
Message:Could not find a field named `rank` in the schema for sorting.
Trace:/var/www/vendor/typesense/typesense-php/src/ApiCall.php on line 348
Expected Behavior
The API should have returned a successful response with data.
Steps To Reproduce
Http Request: `GET /v4/anime?q=Elfen+Lied&page=1
Environment
Anything else?
N/A