Integration with IBM Watson Explorer (WEX)
We are new to AEM and need to integrate IBM Watson Explorer (WEX) for enterprise search. Has anyone done this and able to point me to some documentation?
We are new to AEM and need to integrate IBM Watson Explorer (WEX) for enterprise search. Has anyone done this and able to point me to some documentation?
Hi randalma2120
As mentioned by Scott, there is no specific documentation for IBM watson explorer with AEM. But Yes, we can use it with IBM Watson Explorer's rest APIs.
Create a OSGI service or Sling Servlets and write a code to send HTTP request GET/POST in it.
Example Code :-
import org.apache.commons.httpclient.HttpClient;import org.apache.commons.httpclient.methods.PostMethod;String url = "http://www.google.com";InputStream in = null;try {HttpClient client = new HttpClient();PostMethod method = new PostMethod(url);//Add any parameter if u want to send it with Post req.method.addParameter("p", "apple");int statusCode = client.executeMethod(method);if (statusCode != -1) {in = method.getResponseBodyAsStream();}
Use The link provided by Scott and customize it according to your need.
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.