Element link = OpenSearchUtil.addElement(
root, "link", OpenSearchUtil.DEFAULT_NAMESPACE);
link.addAttribute("rel", "search");
link.addAttribute("href", searchPath + "_description.xml");
link.addAttribute("type", "application/opensearchdescription+xml");
<BUG>return new Object[] {hits, doc, root};
}</BUG>
protected PortletURL getPortletURL(HttpServletRequest req, String portletId)
throws PortalException, PortletModeException, SystemException,
WindowStateException {

Element link = OpenSearchUtil.addElement(
root, "link", OpenSearchUtil.DEFAULT_NAMESPACE);
link.addAttribute("rel", "search");
link.addAttribute("href", searchPath + "_description.xml");
link.addAttribute("type", "application/opensearchdescription+xml");
return new Object[] {doc, root};
}
protected PortletURL getPortletURL(HttpServletRequest req, String portletId)
throws PortalException, PortletModeException, SystemException,
WindowStateException {
