The ibm_opensearch/data/demos directory use the OpenSearch compliant search capabilities present in several remote websites listed below.
For these files to work properly, several setup steps must be performed as outlined below:
The OpenSearch Description Document for those sites must reside in the 'ibm_opensearch/data/demos/resources' directory. For each of the links below, right-click on the link, select "Save Link As..." or "Save Target As..." (depending on your browser), and save the file to the given filename and location indicated. Be sure to select "All Files" or "XML File" for the file type to ensure the file is saved correctly.
Setup a proxy to allow the demo pages (while running in a client-side browser) to access the remote services. The client-side browser restricts XHR requests to the same domain as the page originated from (called the same-origin policy), which means that accessing the remote search services must be routed through a proxy. The AjaxProxy feature of the WebSphere Featurepack for Web 2.0 is the best option and the following steps can be used to setup these demos with the AjaxProxy:
<proxy:mapping contextpath="/http/*"/> <proxy:mapping contextpath="/https/*"/>
After following these steps and deploying the EAR on a Websphere Application Server, the demo files can be viewed within the directory with the following URL:
http://<hostname>:<port>/<projectName>/dojo/ibm_opensearch/data/demos/For example:
http://localhost:9081/AjaxProxy/dojo/ibm_opensearch/data/demos/demo_OpenSearchStore_shutterpoint_rss.html