SXAでAzure Search を使用する場合に「AmbiguousMatchException」エラーが発生する


説明

SXAでAzure Searchを使用する際に、Azure Searchに対する検索クエリが次のようなエラーで失敗することがあります。

AmbiguousMatchException: Ambiguous match found.]
   System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers) +14234112
   System.Type.GetMethod(String name, BindingFlags bindingAttr) +45
   Sitecore.XA.Foundation.Search.Providers.Azure.LinqToCloudIndex`1.Execute(CloudQuery compositeQuery) +870
   Sitecore.ContentSearch.Linq.QueryableExtensions.GetResults(IQueryable`1 source) +387

本問題は、SXAバージョン1.9.0 - 9.3.0で発生します。

解決策

本問題を解決するには、以下のいずれかを検討ください。