37 Commits

Author SHA1 Message Date
Irfan
8772fb4ed8 seasons: fixes listing based on aired date (adds UTC timezone to datetime) 2023-06-11 06:58:24 +05:00
pushrbx
dc9b234f19 improved full-text search
- added support for typesense 0.24.1
- fixed issue where empty `filter_by` field being sent to typesense which resulted in an error
- added infix indexing for title fields in case of Anime/Manga
- added more env vars for customising typesense search
- upgraded typesense driver
2023-05-21 11:18:35 +01:00
pushrbx
6eff2af172 various fixes and refactorings
- genre filtering
- added unapproved filtering
- fixed sfw filtering
- fixed kids filtering
- fixed deprecation warnings as of php 8.1
  - DateTime ctor can't take `null` anymore as first param
  - preg_replace doesn't accept `null` values as `$subject`
- fixed failed items indexer (the --failed option of indexers) -- it didn't load the correct file making it impossible to retry the indexing
- changed the document schema for search indexed anime/manga
  - added `approved` field to them
  - staging will require a reimport into TypeSense
- the central filtering system will now process `sfw` and `unapproved` filters, so they will be applied implicitly through the `filter` model scope method.
2023-05-21 11:18:35 +01:00
pushrbx
cfdc99fe2d improved search results in typesense for anime,manga 2023-05-21 11:18:34 +01:00
pushrbx
1cd58fb964 added type checks when retrieving the year attribute of anime items 2023-05-21 11:18:34 +01:00
pushrbx
9932f69cd2 fixed an issue with broadcast value in anime model 2023-05-21 11:18:03 +01:00
pushrbx
d171f29bc9 fixed bugs introduced by the new system 2023-05-21 11:18:02 +01:00
pushrbx
7ac4f8693e fixed CachedData and scraper service classes 2023-05-21 11:18:02 +01:00
pushrbx
0211fc4128 multiple fixes
- updated api docs
- fixed top reviews endpoint
- fixed reviews parsing
- added "contextual" boolean query string parameters, so params without value can be interpreted as "boolean". E.g. ?sfw or ?kid in the url would add "true" value to their corresponding field in the DTO
- fixed typesense issues
2023-05-21 11:18:02 +01:00
pushrbx
5e922f7cd9 fixed tests part1 2023-05-21 11:14:35 +01:00
pushrbx
413df48fdc fixed issues and added route params mapper 2023-05-21 11:14:35 +01:00
pushrbx
a145f18bbd wip - major refactor
- AppServiceProvider is needs more work to wire in new services
- todo: more dtos
- todo: add unit tests
- todo: add more integration tests
2023-05-21 11:14:34 +01:00
pushrbx
39ab02e969 fixed test service provider contextual binding 2023-05-21 11:14:34 +01:00
pushrbx
8f102d2b56 added the foundations for fixture based tests 2023-05-21 11:14:32 +01:00
pushrbx
18ae7e535e fixed bug around broadcast which only happens with php 8.1 2022-10-23 12:09:11 +01:00
pushrbx
1d75928d15 refactored title simplifications 2022-10-03 20:04:39 +01:00
Irfan
6bf7888176 improve search accuracy 2022-10-03 23:20:39 +05:00
Irfan
3dcaef0bbc prioritize text matching over popularity 2022-06-23 02:27:11 +05:00
Irfan
8905061d9e add title_synonyms + fix: accidentally removed popularity sort 2022-06-23 01:51:34 +05:00
Irfan
29115b54d2 tweak weights 2022-06-23 01:40:18 +05:00
pushrbx
66d2f5377a fixed issues with filtering 2022-06-20 22:35:14 +01:00
pushrbx
b39a1593c8 moved the "getScoutKeyName" function into base class for models
- all models in Jikan rely on mal_id, so we will look for records in mongodb by mal_id when looking up records based on the search index results.
2022-06-17 16:23:48 +01:00
pushrbx
7fea7c7898 added getScoutKey method to the base model class 2022-06-08 17:17:34 +01:00
pushrbx
b5acf936ed (wip) added a new system for resolving query string parameters to ORM commands. 2022-06-08 17:05:12 +01:00
pushrbx
461ccf3db6 wip
- refactored query builders
- added function for transforming nested fields on models to typesense compatible format.
- readded the AppServiceProvider class to the service container
- todo: create a base class for all models so they would share the common typesense specific implementations
2022-06-05 18:53:53 +01:00
pushrbx
49c27eb900 initial attempt to use typesense as search engine
- currently only anime entries.
2022-05-30 18:37:28 +01:00
Irfan
34b3cb4126 Anime/Manga: add explicit, themes, and demographics 2021-12-27 20:18:25 +05:00
Irfan
fbf995d7b3 Anime/Manga Search: Add score range filters min_score, max_score 2020-09-13 14:11:29 +05:00
Irfan
7d20c4efa3 Schedule: fix other and unknown not populating 2020-09-09 01:17:10 +05:00
Irfan
da7ad88604 update schemas 2020-07-23 03:00:16 +05:00
Irfan
029d8a6b9d Anime: bugfix: trailer details not returning 2020-07-22 19:16:38 +05:00
Irfan
d744117aa5 WIP OAPI 3.0 Annotations 2020-07-14 18:27:12 +05:00
Irfan
8232efdecb season in lowercase 2020-07-14 17:15:45 +05:00
Irfan
f6de29826d Person V4 endpoints complete 2020-07-05 12:57:30 +05:00
Irfan
079ed17e9f Anime V4 endpoints complete 2020-07-05 11:29:11 +05:00
Irfan
d11a0ab827 add anime collection & resource 2020-06-18 13:57:26 +05:00
Irfan
009f4e5247 refactor v4 Anime response 2020-06-13 18:52:49 +05:00