0
使用ajaxsolr和浏览器兼容性排序问题。思考最好的办法是关闭solr排序并进行客户端控制。下面是创建对象数组的代码和我的反向排序愚蠢的尝试:在ajaxsolr中反向排序
getFacetCountsMap: function (property) {
var counts = [];
for (var facet in this.manager.response.facet_counts[property] [this.field]) {
counts.push({
facet: facet,
count:parseInt(this.manager.response.facet_counts[property][this.field][facet])
});
}
return counts;
}
我更换的回归计数;与以下内容:
counts:counts.sort(function(a, b){
return b.count-a.count;
});
return counts;
},
没有错误信息,但没有排序。我是否在场上或甚至没有在比赛中?
排序顺序不反转在任一情况下:•配方(1) •图像(2) •培训材料(39) •全文(532) •项目数据(1140) •引文(136675) – 2012-08-16 13:55:18