摘要:
public class SearcherUtil { public void searcher01() { try { IndexSearcher searcher = new IndexSearcher(IndexReader.open(FileIndexUtils.getDirectory())); TermQuery query = new TermQuery(new Term("content","沈")); TopDocs tds = searcher.search(query,20); for(ScoreDoc sd:tds.scoreDo 阅读全文
摘要:
2345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535412341234567891011TextSuggestion.ashx主要代码:1234567891011{stringkey=context.Request["keyword"];context.Response.ContentType="text/plain";Listlist=getSuggestionDAL(key);JavaScriptSeriali 阅读全文
摘要:
sp代码: jquery:$(function(){ $("#brand").keyup(function(){ $("#brandlist").show(); var brand=$(this).val(); $.ajax({ url : "startUpBook.go?method=brandlist", type : "POST", cache : false, data : "brand="+brand, error : function() { alert("数据加载异常&q 阅读全文
摘要:
private HttpServletResponse change(HttpServletResponse response, String view) { response.setCharacterEncoding("GBK"); response.setContentType("text/html"); PrintWriter out; try { out = response.getWriter(); out .print(""); out.print(""); out.print(view); out . 阅读全文