Hi all
I've implemented the spelling correction for the RSS Opensearch feed,
hopefully in keeping with the opensearch guidelines.
Example output given misspelt query "holidays is spainn"
<rss version="2.0">
<channel>
<title>Nutch: holidays in spainn</title>
<description>Nutch search results for query: holidays in
spainn</description>
<link>http://localhost:8080/search.jsp?query=holidays+in+spainn&start=0&
hitsPerDup=2&hitsPerPage=10</link>
<opensearch:totalResults>0</opensearch:totalResults>
<opensearch:startIndex>0</opensearch:startIndex>
<opensearch:itemsPerPage>10</opensearch:itemsPerPage>
<opensearch:Query role="correction"
searchTerms="holidays in spain"/>
<nutch:query>holidays in spainn</nutch:query>
</channel>
</rss>
I haven't added the totalresults attribute as suggested in the
opensearch examples as it isn't something I currently require and might
reduce performance.
If this format is ok, I'll submit an optional patch alongside the
current one at http://issues.apache.org/jira/browse/NUTCH-48 .
Cheers
Aled
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/
************************************************************************
This e-mail and any attachments are strictly confidential and intended solely
for the addressee. They may contain information which is covered by legal,
professional or other privilege. If you are not the intended addressee, you
must not copy the e-mail or the attachments, or use them for any purpose or
disclose their contents to any other person. To do so may be unlawful. If you
have received this transmission in error, please notify us as soon as possible
and delete the message and attachments from all places in your computer where
they are stored.
Although we have scanned this e-mail and any attachments for viruses, it is
your responsibility to ensure that they are actually virus free.