摘要: Linux环境下: 1、进入需要导入的文件所在路径 2、执行: curl "http://IP:8983/solr/目标集合名/update?commit=true" --data-binary @文件名.json -H "Content-type:application/json" Windows 阅读全文
posted @ 2017-06-07 17:14 右介 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: 如果命令语句中有单引号,改为英文双引号试一下 阅读全文
posted @ 2017-06-07 16:57 右介 阅读(5227) 评论(0) 推荐(1) 编辑
摘要: 步骤: 1、在Solr客户端左下方 Core Selector 中点选想要删除数据的索引库 2、点选Documents 3、右侧Document Type中点选XML 4、Document(s)中输入: 5、点击Submit Document 阅读全文
posted @ 2017-06-07 13:42 右介 阅读(4055) 评论(0) 推荐(0) 编辑
摘要: unlockOnStartup 告知 Solr 忽略在多线程环境中用来保护索引的锁定机制。在某些情况下,索引可能会由于不正确的关机或其他错误而一直处于锁定,这就妨碍了添加和更新。将其设置为 true 可以禁用启动锁定,进而允许进行添加和更新。 进入solr-5.3.1/server/solr/被锁住 阅读全文
posted @ 2017-06-07 10:40 右介 阅读(1348) 评论(0) 推荐(0) 编辑
摘要: 使用solr-5.3.1\example\exampledocs下的post.jar来完成数据导入 1、将想要导入的文件放在solr-5.3.1\example\exampledocs中,如aaa.xml, bbb.json 2、xml文件导入执行命令: java -Dport=solr端口号 -D 阅读全文
posted @ 2017-06-07 10:11 右介 阅读(2016) 评论(0) 推荐(0) 编辑