当前位置:网站首页>solr(二)solr添加core以及依赖包路径
solr(二)solr添加core以及依赖包路径
2022-06-11 16:30:00 【peach桃】
因为项目需要,学习并总结了solr内容,上一次总结了solr的安装及权限控制,想要了解的可以查看Solr的安装及权限控,接着来总结一下solr如何添加核心core以及它的依赖包路径配置,直接上文
内容:
1. Solr添加core
2. 引包路径问题
一:Solr添加core
1.新建core1
进入到solrhome文件夹,建立一个文件夹,用于存放你的core,例如core1
2.拷贝内容
进入到server\solr\configsets\sample_techproducts_configs文件夹,将此文件夹下的conf 目录拷贝到刚刚建立的core的文件夹下,即core1文件夹下
3.管理界面add core
在浏览器中输入http://localhost:8080/solr/index.html,进入solr管理页面,点击左侧的add core,在name 和instanceDir下都输入cores(在步骤2中取得名称) ,点击add core即可
然后在进入到\cores目录,此时会发现多了一个data文件夹和一个properties文件。
data目录,用于存储索引文件,core.properties文件用于存放core的配置信息。
到此solr的搭建,以及第一个core的就到此结束了。
注意:在添加多个core的时候,可直接将core1复制,只需修改core.properties文件,将里面的name重新给成现在core的名称即可;或者重新用上面的方式,在管理页面通过add添加新的core。
二:依赖包的路径问题
注意:添加完core后,试着放入数据后,重新启动solr时,会报找不到一些jar包的错误,即扫描包路径不对,需要修改依赖包的位置等
1:拷贝移动
将/solr-7.1.0下的contrib和dist文件夹拷至与solrhome同级文件夹下。
3. 修改\solrHome\core1\conf下的solrconfig.xml,改至如下
<libdir="${solr.install.dir:../..}/contrib/extraction/lib"regex=".*\.jar" />
<libdir="${solr.install.dir:../..}/dist/"regex="solr-cell-\d.*\.jar" />
。。。。。。。。。。。。。。。。。。。。。。
<lib dir="${solr.install.dir:../..}/dist/"regex="solr-velocity-\d.*\.jar" />
边栏推荐
- Will you be punished for not wearing seat belts in the back row?
- 【opencvsharp】斑点检测 条码解码 图像操作 图像旋转/翻转/缩放 透视变换 图像显示控件 demo笔记
- rf中安装的第四步:安装 robotframework-selenium2library报错
- 笔记本连接外部键盘后,如何把笔记本自身的键盘禁用
- R1 Quick Open Pressure Vessel Operation test Library and Simulation Test in 2022
- Step 4 of installation in RF: an error is reported when installing the robotframework-selenium 2library
- 完整的测试流程【杭州多测师】【杭州多测师_王sir】
- Aaai2022 latest "time series data processing" report, 127 pages of PPT describing time series data processing and medical application progress
- Student website template brown cake dessert website design - brown cake dessert shop (4 pages) gourmet dessert website production final assignment finished product_ Fresh fruit web design final assign
- (湖南科技大学oj作业)问题 G: 串的模式匹配
猜你喜欢

回归预测 | MATLAB实现RBF径向基神经网络多输入单输出

laravel 监听模式

Streaking? Baa!

完整的测试流程【杭州多测师】【杭州多测师_王sir】

AutoRunner自动化测试工具如何创建项目-Alltesting|泽众云测试

2022安全员-C证特种作业证考试题库及答案

Pytest test framework Basics

Step 4 of installation in RF: an error is reported when installing the robotframework-selenium 2library

2022年R1快開門式壓力容器操作考試題庫及模擬考試

Ruiji takeout project (III) employee management business development
随机推荐
[leetcode daily question] Repeat overlay string matching
Composition of JVM
[从零开始学习FPGA编程-17]:快速入门篇 - 操作步骤2-5- VerilogHDL硬件描述语言符号系统与程序框架(软件程序员和硬件工程师都能看懂)
TC8:UDP_MessageFormat_01-02
Operation guide | how to select a collector on moonbeam and Moonriver
laravel 8 使用passport 进行Auth验证及颁发token
How to optimize the performance of compose? Find the answer through "underlying principles" | developers say · dtalk
笔记本连接外部键盘后,如何把笔记本自身的键盘禁用
Talk about data center network again
【剑指Offer】22.链表中倒数第K节点
【opencvsharp】opencvsharp_samples.core示例代码笔记
基于FPGA的VGA协议实现
Project workspace creation steps - Zezhong ar automated test tool
Graduation project wechat applet OUC campus navigation (I) topic selection and opening report
Analysis of time complexity and space complexity
Princeton Dengjia student's personal account: must I have a doctorate? No, I can also be an applied scientist in a large factory as an undergraduate
What if the win10 security center cannot be closed
Simulated 100 questions and simulated examination for main principals of hazardous chemical business units in 2022
2022高压电工特种作业证考试题库及在线模拟考试
leetcode417. Pacific Atlantic current problems (medium)