2016-07-05 16 views
3

私は私の道/単一のSolrのインデックスの2つの異なるサイトコアパス/サイトコア/コンテンツ/システム/マイパス/サイトコア/コンテンツ/システムに2を追加する必要があります。サイトコアSolrのインデックスの構成設定の異なるルートパス

どうすれば正しい方法で対応できますか?

私はちょうど新しいクローラの説明を新しいルート値で場所セクションに追加する必要があります。私はを使うべきですか? spliter at root section?または、すべてインデックスセクションをルートの新しいパスでコピーする必要がありますか?

<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

我々は場所とその作業罰金の下で、クローラと同じ名前の複数のタグを使用しています。同じ名前の複数のタグをサポートしています。

関連する問題