To enable better match rates, the ability to write custom sort logic into the ES query would be very helpful.
Reference: