afs:suggestion - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.7
Category
Reference Guide

spellcheck agent gives suggestions on misspelled words.

Output feed example

<!-- afs:query=fou ET bar&afs:query=barr OU foo -->
<!-- suppose that fou is corrected as: foo -->
<!-- suppose that barr is corrected as: bar -->

<afs:replySet>
<afs:meta uri="afs:spellcheck" totalItems="2" totalItemsIsExact="true" pageItems="2" firstPageItem="1" lastPageItem="1" durationMs="2" firstPaFId="1" lastPaFId="1" producer="spellcheck"/>
<afs:content>
<afs:reply docId="1" uri="Feed">
<afs:suggestion>
<afs:match text="foo"/>
<afs:sep text="ET"/>
<afs:text text="bar"/>
</afs:suggestion>
</afs:reply>
<afs:reply docId="2" uri="Feed">
<afs:suggestion>
<afs:match text="bar"/>
<afs:sep text="OU"/>
<afs:text text="foo"/>
</afs:suggestion>
</afs:reply>
</afs:reply>
</afs:content>
</afs:replySet>