@Lexical good suggestions, that is similar to what I have in mind
@nonindustrial there are different search indexes for all types of resources, there is manga, chapter, author, user, scanlationgroup (and probably more...)
because its way faster and less resource-intensive to query elasticsearch compared to the db, I wanted to pull data from there every way I can. So for example on a manga page /manga/<uuid> i would get the chapters of that manga from a search request. Therefore the "get this manga's English chapters that have been added since our last timestamp check." would necessarily have to work and its also not a big deal to make that work with ES. your filter would just be
Code:
filter: createdAt > 01-01-2021
or something
Code:
/manga/{id}/chapters?language=en&createdAfter=timestamp
I would prefer to keep the resources separate from each other, so you would need to use /search/manga to find the mangas uuid first, then do a second search to /search/chapter where id = <uuid> but i'm not hard set on this yet.