- Issue created by @mdranove
- Merge request !2Allow views to use limits with the related content scorer. → (Merged) created by mdranove
Views. Scored Sort relies on a views_pre_render hook to sort the views. Limits on the view occur in the query, meaning that if a view uses a limit the pre-render hook will sort on the results after the limit has been enforced. So if there's 1000 results, and then a limit of 3 is placed on the results list, the pre_render hook will only sort the 3 results, rather than the 1000 that it should have sorted.
Use a query_alter to remove the limit, but capture the value and send it to the scoring service, then use that value to array_slice.
Active
1.0
Code