Created on 6 May 2025, 1 day ago

Problem/Motivation

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.

Proposed resolution

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.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024