Scripting: Add score() back to AbstractSearchScript

See #8377
closes #8416
closes #8417