対話Webサービスによって返されるブレッドクラム情報は、スペル修正を反映できます。次の例で、このケースを示します。
スペル修正を返す検索問合せでブレッドクラムをリクエストするには、リクエストで検索キーワードと、BreadcrumbConfigおよびSearchAdjustmentsConfigの2つのタイプを指定します。これらのタイプは、ContentElementConfigのサブタイプです。
次の例のリクエストは、ユーザーが入力したfifeという単語の検索を含むナビゲーション状態を指定します。これは、スペルを修正する必要のあるブレッドクラムでの検索リクエストを示します。
<Request xmlns="http://www.endeca.com/MDEX/conversation/2/0"> <State/> <Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SearchOperator" Within="false"> <SearchFilter Mode="All" Key="English"> fife </SearchFilter> </Operator> <ContentElementConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BreadcrumbConfig" ReturnFullPath="true" HandlerFunction="BreadcrumbHandler" HandlerNamespace="http://www.endeca.com/MDEX/conversation/2/0" Id="Breadcrumbs"/> <ContentElementConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SearchAdjustmentConfig" HandlerFunction="SearchAdjustmentHandler" HandlerNamespace="http://www.endeca.com/MDEX/conversation/2/0" Id="SearchAdjustments"/> <PassThrough>...</PassThrough> </Request>
対話Webサービスからのレスポンスには、検索フィルタ演算子が適用された元のリクエスト、元の(スペル修正されていない)用語fife、および絞込みの削除に必要なPopSearchOperator (ユーザーがこのブレッドクラムの削除を決定した場合)が含まれます。最後に、レスポンスのAppliedAdjustmentのContentElementには、自動的に修正された用語fiveも含まれます。
<cs:Results xmlns:cs="http://www.endeca.com/MDEX/conversation/2/0" xmlns:mdex="http://www.endeca.com/MDEX/XQuery/2009/09"> <cs:Request> <cs:State> <SearchFilter xmlns="http://www.endeca.com/MDEX/conversation/2/0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Mode="All" Key="English"> fife </SearchFilter> </cs:State> <ContentElementConfig xmlns="http://www.endeca.com/MDEX/conversation/2/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BreadcrumbConfig" ReturnFullPath="true" HandlerFunction="BreadcrumbHandler" HandlerNamespace="http://www.endeca.com/MDEX/conversation/2/0" Id="Breadcrumbs"/> <ContentElementConfig xmlns="http://www.endeca.com/MDEX/conversation/2/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SearchAdjustmentConfig" HandlerFunction="SearchAdjustmentHandler" HandlerNamespace="http://www.endeca.com/MDEX/conversation/2/0" Id="SearchAdjustments"/> </cs:Request>
<cs:ContentElement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cs:Breadcrumbs" Id="Breadcrumbs"> <cs:SearchBreadcrumb DisplayName="English"> <cs:SearchFilter Key="English" Mode="All"> fife </cs:SearchFilter> <cs:Operator xsi:type="cs:PopSearchOperator"> <cs:SearchFilter Key="English" Mode="All"> fife </cs:SearchFilter> </cs:Operator> </cs:SearchBreadcrumb> </cs:ContentElement> <cs:ContentElement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cs:SearchAdjustments" Id="SearchAdjustments"> <cs:AppliedAdjustment> <cs:SearchFilter Key="English" Mode="All"> fife </cs:SearchFilter> <cs:AdjustedTerms> five </cs:AdjustedTerms> </cs:AppliedAdjustment> </cs:ContentElement> </cs:Results>