2016-07-05 2 views
3
내가 단일 SOLR 지수 2 개의 다른 sitecore 경로 /sitecore/컨텐츠/시스템/내 경로/sitecore/컨텐츠/시스템/내 경로 2에 추가 할 필요가

.Sitecore SOLR 인덱스 구성 설정 다른 루트 경로

어떻게 올바르게 할 수 있습니까?

새로 추가 할 크롤러 설명을 위치 섹션에 새 루트 값으로 추가해야합니까? 을 사용해야합니까? 루트 섹션에 spliter? 또는 색인 섹션을 루트의 새 경로로 복사해야합니까?

<index id="my_index" type="Sitecore.ContentSearch.SolrProvider.SwitchOnRebuildSolrSearchIndex, Sitecore.ContentSearch.SolrProvider"> 
    <param desc="name">$(id)</param> 
    <param desc="core">myindex</param> 
    <param desc="rebuildcore">myindex_swap</param> 
    <param desc="propertyStore" ref="contentSearch/databasePropertyStore" param1="$(id)" /> 
    <configuration ref="contentSearch/indexConfigurations/countryIndexConfiguration" /> 
    <strategies hint="list:AddStrategy"> 
     <strategy ref="contentSearch/indexUpdateStrategies/manual" /> 
    </strategies> 
    <locations hint="list:AddCrawler"> 
     <crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> 
      <Database>web</Database> 
      <Root>/sitecore/content/System/My Path</Root> 
     </crawler>       
    </locations> 
</index> 

답변

3

crawler을 복사하고 원래 태그 이름과 다른 태그 이름을 사용하십시오. crawler1. 태그 이름이 무엇인지는 중요하지 않으므로보다 구체적인 태그 이름을 사용할 수 있습니다. news 또는 blogs. 중요한 것은 locations 태그 아래에 같은 이름의 태그가 2 개있을 수 없다는 것입니다. 2 뿌리와

샘플 설정 :

<locations hint="list:AddCrawler"> 
    <news type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> 
     <Database>web</Database> 
     <Root>/sitecore/content/System/news</Root> 
    </news>       
    <blogs type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> 
     <Database>web</Database> 
     <Root>/sitecore/content/System/blogs</Root> 
    </blogs>       
</locations> 
0

우리는 위치에 따라 크롤러 및 작업 잘 같은 이름으로 여러 개의 태그를 사용하고 있습니다. 동일한 이름의 여러 태그를 지원합니다.