- 浏览: 555867 次
- 性别:
- 来自: 济南
最新评论
-
mr_xiaoyu:
最终会调用到ScheduledFutureTask#run() ...
ScheduledThreadPoolExecutor -
csmnjk:
谢谢分享!
SSH + Lucene + 分页 + 排序 + 高亮 模拟简单新闻网站搜索引擎 -
qsword555:
public static void main(String ...
ScheduledThreadPoolExecutor -
yun900800:
我的也是就抛了一次异常
ScheduledThreadPoolExecutor -
bjfuzh:
bjfuzh 写道我自己跑了下,那个抛异常的定时器,只执行了一 ...
ScheduledThreadPoolExecutor
文章列表
这个东西对于后来带过来的javascript非常好使 .
$("#item").livequery("click" , function() {
alert(1111111111111);
});
- 2009-09-23 13:28
- 浏览 1709
- 评论(0)
将键值对生成网址url
- 博客分类:
- lucene
public String getUrl(Map<String, String> map, String valueEnc) { if (null == map || map.keySet().size() == 0) { return ""; } StringBuffer url = new StringBuffer(); Set<String> keys = map.keySet(); for (Itera ...
- 2009-09-22 20:29
- 浏览 1266
- 评论(0)
String agent = request.getHeader("User-Agent");
if(agent.indexOf("Firefox") == -1 && agent.indexOf("MSIE") == -1) {
response.sendRedirect("error.html");
}
采用的策略就是setHeader("User-Agent" , "浏览器的值");
Firefox ...
- 2009-09-22 16:51
- 浏览 1280
- 评论(0)
String text = ExtractorFactory.createExtractor(new File("2006080217595763310.xlsx")).getText();
- 2009-09-21 19:54
- 浏览 3841
- 评论(0)
XStream可以完成xml文件和java对象之间的相互转换
从 http://xstream.codehaus.org/ 下载最新版本 1.3.1
使用时最小jar包只需要1个 , 就是xsteam.jar
--------------------------------------------------
XStream xsteam = new XStream();
new的时候是有选择性的 , 如果使用默认的话 , 需要添加jar包xpp3_min-1.1.4c.jar , 否则在将xml文件转换成对象时,会出现异常
不适用默认的话 ,不需要添加xpp ...
- 2009-09-21 18:36
- 浏览 3508
- 评论(0)
同时从两个索引库中读取索引
- 博客分类:
- lucene
IndexReader reader1 = IndexReader.open("directory1");
IndexReader reader2 = IndexReader.open("directory2");
MultiReader multiReader = new MultiReader(new IndexReader[]{reader1 , reader2});
IndexSearcher searcher = new IndexSearcher(multiReader);
后面的就不用说了
- 2009-09-09 20:02
- 浏览 918
- 评论(0)
C:\Documents and Settings\Administrator\Local Settings\Application Data\Mozilla\Firefox\Profiles\t0os0ar3.default\Cache
- 2009-09-08 15:19
- 浏览 1085
- 评论(0)
/*** 根据信息分类和关键词进行查询* @param type,资源的类型,其值为news或product* @param searchKey,搜索的关键字* @return Hits*/public Hits executeSearch(String type,String keyword){ Hits result = null; if(type != null && !type.equals("") && keyword != null && !keyword.equals("")) { ...
- 2009-09-08 02:51
- 浏览 1387
- 评论(0)
默认空格两边的词为或者关系
改为并且关系 , 执行 :
QueryParser parser = new QueryParser("fieldName" , Analyzer);
parser.serDefaultOperation(QueryParser.AND_OPERATOR);
就搞定了。
- 2009-09-08 02:18
- 浏览 1210
- 评论(0)