9 Commits

Author SHA1 Message Date
pushrbx
8d4a595b75 fixed indexing issue with typesense
- all models have a "title" field, and that's the default sorting field, however this is not being indexed as such for the models, except where explicitly specified (Anime and Manga models)
2024-01-31 18:33:32 +00:00
pushrbx
b0285d15d7
fixed bug around non anime/manga search 2023-09-17 20:28:45 +00: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
72b6bb9442 fixed several issues
- search indexes should be different for testing
- added ability to flush the search index between tests
- fixed missing attributes in model factories
2023-05-21 11:14:32 +01:00
pushrbx
1d75928d15 refactored title simplifications 2022-10-03 20:04:39 +01:00
pushrbx
1dbdc71d15 made search results more similar to the ones on MAL
- added more support for elasticsearch
- added more options for typesense searches
2022-06-18 15:03:50 +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