上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
  2017年4月23日
摘要: 注:在上一篇的solr增量索引中遇到了一个很大的问题:定时任务一直无法执行,后来找了很多原因,分析日志后发现增量索引的请求都没发送,又经过一番折腾才在网上找到了解决方法,是apache-solr-dataimportscheduler-1.0.jar的一个bug,post请求无法正确发送,这位仁兄的 阅读全文
posted @ 2017-04-23 20:26 编世界 阅读(4314) 评论(0) 推荐(0) 编辑
摘要: 开源企业搜索引擎SOLR的 应用教程 2010-10 目 录 1 概述... 4 1.1 企业搜索引擎方案选型... 4 1.2 Solr的特性... 4 1.2.1 Solr使用Lucene并且进行了扩展... 4 1.2.2 Schema(模式)... 5 1.2.3 查询... 5 1.2.4 阅读全文
posted @ 2017-04-23 20:02 编世界 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1 查询得到SolrDocumentList的集合,里面放了SolrDocument对象,用getFieldValue()方法获取域(字段)的值 2 查询直接得到对象,前提是pojo中加入了@Field(name="")的注解 3 高亮显示 阅读全文
posted @ 2017-04-23 19:01 编世界 阅读(158) 评论(0) 推荐(0) 编辑
摘要: public static void search(String indexDir,String q)throws Exception{ Directory dir=FSDirectory.open(Paths.get(indexDir)); IndexReader reader=DirectoryReader.open(dir); Ind... 阅读全文
posted @ 2017-04-23 12:49 编世界 阅读(265) 评论(0) 推荐(0) 编辑
  2017年4月22日
摘要: 相关度检索 ^ 可以将相关度上提 阅读全文
posted @ 2017-04-22 23:05 编世界 阅读(163) 评论(0) 推荐(0) 编辑
  2017年4月21日
摘要: public class Indexer { public void index() throws IOException { //创建dicti // Directory dir = new RAMDirectory(); Directory dir = FSDirectory.open(Paths.get("I:/testDemo/l... 阅读全文
posted @ 2017-04-21 22:36 编世界 阅读(127) 评论(0) 推荐(0) 编辑
  2016年11月13日
摘要: 一 配置文件取别名的两种方式 <!-- <typeAliases> <typeAlias alias="Student" type="com.he.entity.Student"/> </typeAliases>- --> <typeAliases> <package name="com.he.en 阅读全文
posted @ 2016-11-13 18:26 编世界 阅读(107) 评论(0) 推荐(0) 编辑
  2016年10月2日
摘要: 1 JFinalConfig中五个方法 1.1 configConstant 2 请求参数传到后台怎么得到 getPara getBean getModul 3 上传文件 config中configConstant配置最大文件大小 me.setMaxPostSize(1024 * 1024 * 20 阅读全文
posted @ 2016-10-02 00:24 编世界 阅读(223) 评论(0) 推荐(0) 编辑
  2016年9月24日
摘要: 1 认识nodejs的事件 //声明事件对象 var EventEmitter = require('events').EventEmitter;var event = new EventEmitter(); //注册事件,new event就是事件名 event.on('new event',fu 阅读全文
posted @ 2016-09-24 22:53 编世界 阅读(169) 评论(0) 推荐(0) 编辑
  2016年9月12日
摘要: 同步IO是指遇到IO就阻塞,IO处理完了继续执行 异步IO是单线程执行,遇到IO不阻塞,继续执行,IO执行完了会通知该线程,线程会在某个特定的时候处理IO返回的结果。 var fs=require('fs');fs.readFile('app.js','UTF-8',function(err,dat 阅读全文
posted @ 2016-09-12 22:11 编世界 阅读(646) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页