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 in solr.xml so 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)

你可能感兴趣的:(Solr.xml)