対話Webサービスによって返されるブレッドクラム情報は、DYM (もしかして)提案を反映できます。次の例で、このケースを示します。
DYM提案を返す検索問合せでブレッドクラムをリクエストするには、キーワード検索エントリと、ContentElementConfig複合タイプのBreadcrumbConfigおよびSearchAdjustmentConfigタイプを指定します。
<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="Essay"> jane </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" /> </Request>
レスポンスはDYM結果を反映します。この例では、レスポンスには、演算子が適用されたリクエストに続いて、DYMで提案された用語can、さらにDYMで提案された用語でキーワードを実際に置換するApplySpellingSuggestionOperatorが含まれます。
<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="Essay"> jane </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="Essay"> <cs:SearchFilter Key="Essay" Mode="All"> jane </cs:SearchFilter> <cs:Operator xsi:type="cs:PopSearchOperator"> <cs:SearchFilter Key="Essay" Mode="All"> jane </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:SuggestedAdjustment RecordCountIfApplied="15"> <cs:SearchFilter Key="Essay" Mode="All"> jane </cs:SearchFilter> <cs:SuggestedTerms> can </cs:SuggestedTerms> <cs:Operator xsi:type="cs:ApplySpellingSuggestionOperator"> <cs:SearchFilter Key="Essay" Mode="All"> jane </cs:SearchFilter> <cs:Replacement> can </cs:Replacement> </cs:Operator> </cs:SuggestedAdjustment> </cs:ContentElement> </cs:Results>