I am building an application with a complex model, says Book, User and Review.
The overview contains the identifier of the book and user. In order to be able to search for Books containing at least one review, I set the parent record "Book as a review" and had routing as such. However, I also need to find users who wrote reviews containing specific phrases.
Is it possible to have a parent Book and User as Review? Is there a better way to handle this situation?
Please note that I cannot change the way the data is modeled / not wanting this, because the data is transferred to Elasticsearch from the save database.
tungd source share