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)

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念