Closed eneskosr closed 5 years ago
@cburakaygun Of course, these ids are not for the end users. I thought returning full memory post is not necessary. In frontend, they can retrieve related memory posts with these ids.
I don't think sending a request for every Memory-Post contained in the search result is a good idea. It would be better for frontend to show the users titles and only sending a request for the Memory-Post when the user click on a title.
So, I suggest "memory_posts"
key of the search results be like:
[ {"id": <id>, "title": <title>}, {"id": <id>, "title": <title>}, ... ]
Okay, it does make sense. I have changed the endpoint.
I am merging it, thanks for your reviews.
Hello,
This PR contains the implementation of search mechanism as stated here.
Related issue: #146.