先写具体的实现代码,具体的实现思路和逻辑写在代码之后。
搜索时用于排序的Bean
/** *@Description: */ package cn.lulei.search.engine.model; public class SortBean { private String id; private int times; public String getId() { return id; } public void setId(String id) { this.id = id; } public int getTimes() { return times; } public void setTimes(int times) { this.times = times; } } /** *@Desc