var script = " null != params._source.sortTime ? params._source.sortTime.toString() : (params._source.list instanceof ArrayList && params._source.list.length > 0 ? params._source.list[0].sortTime : '0')";
sort.Script(s => new ScriptSort
{
Order = SortOrder.Descending,
Script = new InlineScript(script),
Type = "string",
});
标签:sortTime,C#,doc,list,source,params,._,es
From: https://www.cnblogs.com/eoore/p/17535068.html