前端之家收集整理的这篇文章主要介绍了
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@H_404_18@- By default,should runtime core manipulation be saved insolr.xmlso that it is available after a restart.
-
sharedLib@H_404_18@- 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)