TopDocs topDocs = indexSearch.search(query,filter,1000,new Sort(new SortField(“size”)));
这句话执行有异常,提示 Servlet.service() for servlet [servlet.Practice] in context with path [/anysearch] threw exception
java.lang.RuntimeException: no terms in field data - cannot determine sort type
有没有大佬可以分享一下解决方法