Solr.xml

Solr對於index的管理是基於Core的概念的,Solr底層是經過lucene來進行index的,每個邏輯上的要index的業務對象均可以看做是一個core. spa

<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: rest

  • persistent - By default, should runtime core manipulation be saved in solr.xml so that it is available after a restart. code

  • 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) xml

相關文章
相關標籤/搜索