- Joined
- Jan 18, 2018
- Messages
- 275
Current search is very limited, i want to find out what requirements i need to work with.
[ul]
[li]At the present moment, v5 will use Elasticsearch[/li]
[li]There are 5 endpoints that will support search queries, /search/manga, /search/chapter, /search/author, /search/user, /search/group[/li]
[li]I will not directly pass through search queries to elasticsearch because i dont know if this can be abused. Let me know if you have contrary information[/li]
[li]resource ids will change from int to uuid[/li]
[/ul]
I've identified a set of use cases that i think will cover most of the search needs:
group, user and artist are undetermined.
For the endpoints i mentioned, do you think this works? Are you missing any particular query that isnt covered?
Would you make something different?
Let me know
[ul]
[li]At the present moment, v5 will use Elasticsearch[/li]
[li]There are 5 endpoints that will support search queries, /search/manga, /search/chapter, /search/author, /search/user, /search/group[/li]
[li]I will not directly pass through search queries to elasticsearch because i dont know if this can be abused. Let me know if you have contrary information[/li]
[li]resource ids will change from int to uuid[/li]
[/ul]
I've identified a set of use cases that i think will cover most of the search needs:
Code:
POST /search/manga
- query: "*" (default) | any non-empty string,
- sort:
--- relevancy
--- created
--- updated.<languageCode>
--- title.<languageCode>
--- year
--- chapterCount.<languageCode>
- filter:
--- isLocked: bool
--- author: uuid
--- artist: uuid
--- originalLanguage: string (ex: "jp", "en")
--- hasEnded: bool
--- publicationDemographic: string
--- status: string (ex: "ongoing", "hiatus")
--- year: range
--- contentRating: string (ex: "hentai")
Code:
POST /search/chapter
- query: "*" (default) | any non-empty string,
- sort:
--- relevancy
--- created
--- vol/chapter number (default)
- filter:
--- language: string, ex: ("en", "ru", "it", ...)
--- uploader: uuid
--- groups: uuid
--- manga: uuid
group, user and artist are undetermined.
For the endpoints i mentioned, do you think this works? Are you missing any particular query that isnt covered?
Would you make something different?
Let me know