SXAにおいてAzure Searchプロバイダーを使用する際、「CloudSearchResults constructor not found」エラーが発生する


説明

SXA 1.9.0~9.3.0において、Azure Searchを使用する際、Azure Searchに対する検索クエリが下記のようなエラーで失敗する可能性があります:

Exception System.MissingMethodException: Constructor on type 'Sitecore.ContentSearch.Azure.Query.CloudSearchResults`1[[Sitecore.ContentSearch.SearchTypes.SearchResultItem, Sitecore.ContentSearch, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null]]' not found.

SXA以外のサイトでの同じエラーについては、以下の記事を参照してください:
Azure Searchにおける「CloudSearchResults constructor not found」エラーについて

解決策

この問題を解決するには、以下のオプションのいずれかを実施してください: