How should I implement script sort in spring-data-elasticsearch 5.3.x
NativeQueryBuilder nativeQueryBuilder= new NativeQueryBuilder();
nativeQueryBuilder.withQuery(query);
nativeQueryBuilder.withSort(Sort.Order.desc('key'));
return elasticsearchTemplate.search(nativeQueryBuilder.build(), xxx.class);
Now, I want to add a script-based sorting on top of this. I know how to write the script, but it seems that script-based sorting is not supported in the context of NativeQueryBuilder.