Closed (won't fix)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Framework
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2019 at 20:00 UTC
Updated:
10 Sep 2019 at 11:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lukedekker commentedComment #3
lukedekker commentedAlternate patch that assumes the value is an array and that the scores are integers instead of strings.
Comment #4
lukedekker commentedAnd I reworked this again because it sucked... Now the script is passed in as a parameter.
Comment #5
drunken monkeyAs this is obviously specific to one backend, we won’t add support for this to the Search API.
Instead, simply pass a special value (like
':script') to the existingsort()method and any additional data you need via a query option. Then, the ES backend can just look for that. No need to add specific support for it.If you want to make this available for other modules as well, you could consider formally defining this as a backend feature.