摘要: Map的key的类型 可以是int或者String类型,类型不同排序的结果也不同。 阅读全文
posted @ 2016-07-07 17:02 搜索技术 阅读(305) 评论(0) 推荐(0)
摘要: 1. 上下限目的是保证能遍历数组的全部元素,因此上下限的初始值取的是数组的下标而非数组的length 2. while循环的条件是 upper 不小于 lower 3. 当前下标命名一开始自己起的是posi,根据其赋值 (lower+upper)/2 ,命名mid还是挺恰当 阅读全文
posted @ 2016-07-07 13:53 搜索技术 阅读(182) 评论(0) 推荐(0)
摘要: document: 每个document由一个或者多个域(field)组成,每个域都有自己的类型:string, text, etc. 理论上域的类型有无限多个,因为一个域的类型可以由零个或多个分析阶段组成的,这些步骤决定了该域如何被索引。 所有的域都要指定一个定义好的类型。 查询语法: 要求必须出 阅读全文
posted @ 2016-07-06 17:41 搜索技术 阅读(114) 评论(0) 推荐(0)
摘要: http://blog.jobbole.com/80619/ 阅读全文
posted @ 2016-07-06 15:03 搜索技术 阅读(104) 评论(0) 推荐(0)
摘要: //使用绝对路径,否则无法读取config.properties //InputStream inStream=new FileInputStream("F:\\android\\test\\src\\com\\ljq\\test\\resource\\config.properties"); // 阅读全文
posted @ 2016-07-01 10:43 搜索技术 阅读(15503) 评论(0) 推荐(0)
摘要: 项目->右键 Properties-> java Build Path -> source: xxx/data xxx/src 体现在 .classpath文件中: .classpath文件 <?xml version="1.0" encoding="UTF-8"?><classpath> <cla 阅读全文
posted @ 2016-07-01 10:38 搜索技术 阅读(213) 评论(0) 推荐(0)
摘要: String path = PyDataHandler.class.getClassLoader().getResource("pinyin_in.txt").getPath(); pinyin_in.txt 放在项目 资源文件目录下。 http://hxdawxyhxdawxy.iteye.com 阅读全文
posted @ 2016-06-30 16:33 搜索技术 阅读(182) 评论(0) 推荐(0)
摘要: getRealPath方法已经不建议使用了: http://blog.csdn.net/lzynihao/article/details/8315796 另外:http://veryls.iteye.com/blog/239830 阅读全文
posted @ 2016-06-28 11:25 搜索技术 阅读(461) 评论(0) 推荐(0)
摘要: http://guoliangqi.iteye.com/blog/670710 阅读全文
posted @ 2016-06-28 10:01 搜索技术 阅读(126) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/doc_sgl/article/details/46594123 阅读全文
posted @ 2016-06-27 17:43 搜索技术 阅读(93) 评论(0) 推荐(0)