I have been learning to work with elasticsearch recently and had a design question about a typical scenario ?
M:N relation between Author and Books
Author1 -> Book1 and Book2
Author2 -> Book1 and Book3
Book1 - is titled “Mathematics”
Book2 - is titled “Biology”
Book3 - is titled “Chemistry”
Search all books that contain name “Biology” written by “Author1” but return them in batches of 50 (using from and size in the query)
What would be the ideal way to implement indexing for this of search/pagination in Elasticsearch ?