Look at the TOP function, as enhanced in 9.3.0+
Sadly the outputField is a bit limited, allowing a keyword field as outputField would be a massive enhancement in many use cases IMHO, but it might be useful in your case?
I asked about this here but sadly got no answer.