This repository was archived by the owner on Jun 25, 2025. It is now read-only.
Commit 7ce2fae
committed
Return related materials ordered by query instead of covers
In the current version we retrieve object ids from search result,
pass these to the cover service in the same order and merge material
data intro the provided results.
However practice has shown that the cover service does not
necessarily preserve the order of the requested ids in the response.
This leads to a situation where the related materials will not have
the same order as in the linked search result.
To preserve the order of the materials from the search result we
merge cover data into the materials instead and filter away any
materials without a cover.1 parent e0dc8bf commit 7ce2fae
File tree
1 file changed
+6
-5
lines changed1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments