以下の状況では、コンテンツ ツリー検索、スタート バーの検索、検索付きマルチリスト フィールドなどのSitecoreクライアントの検索関連の機能が正常に機能しない恐れがあります:
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch">
<indexes hint="list:AddIndex">
<index id="sitecore_master_index" type="Sitecore.ContentSearch.LuceneProvider.LuceneIndex, Sitecore.ContentSearch.LuceneProvider">
...
<locations hint="list:AddCrawler">
<crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
<Database>master</Database>
<Root>/sitecore/content/Home</Root>
</crawler>
事象が発生した場合、以下の例外がSitecoreログ ファイルに出力される可能性があります:
Exception: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: key
Source: mscorlib
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at Sitecore.ContentSearch.ContentSearchManager.GetIndex(String name)
この問題を解決するには、以下のパッチを適用してください:
このパッチでは、デフォルトでsitecore_master_indexに設定されているDefaultMasterDBIndexName設定が導入されます。
Sitecoreクライアントにおいて、ある検索操作でコンテキストのインデックスが見つからなかった場合、この設定で指定されたインデックスはフォールバックとして使用されることになります。このインデックスはmasterデータベース全体に対応しているため、本記事で説明されている問題を防止することができます。