微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Solr.xml

Solr对于index的管理是基于Core的概念的,Solr底层是通过lucene来进行index的,每一个逻辑上的要index的业务对象都可以看作是一个core.

<solr persistent="true" sharedLib="lib">
 <cores adminPath="/admin/cores">
  <core name="core0" instanceDir="core0" />
  <core name="core1" instanceDir="core1" />
 </cores>
</solr>



The<solr>tag accepts two attributes:

  • persistent- By default,should runtime core manipulation be saved insolr.xmlso that it is available after a restart.

  • sharedLib- Path to a directory containing .jar files that are added to the classpath of every core. The path is relative to solr.home (where solr.xml sits)

原文地址:https://www.jb51.cc/xml/299227.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。