Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM6.1 integration wth Kovio

Avatar

Level 4

Hi Friends,

Very Good Morning

Does anyone has come across integrating AEM6.1 with Kovio? can some one let me know how to integrate AEM with external search engine.

 

Regards

Pr@veen

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi Praveen

There is no OOTB integration or connector component between these two products as of now.

Option 1:

You would have to create a custom AEM service and integrate using its Rest API - which it supports. Here is a community article on how to hook a Restful service into AEM.

Link: https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html

Creating Adobe Experience Manager bundles that invoke third party Restful web services

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();
            }

 

Option 2:

Coveo can be programmed using JAVAScript API. We can use Java-scripting in AEM to achieve the needful.

Link:-  https://helpx.adobe.com/experience-manager/using/custom-carousel-components.html

Coveo JS API docs:- https://developers.coveo.com/display/public/JsSearchV1/JavaScript+Search+Framework+V1+Home

Getting started :- https://developers.coveo.com/display/public/JsSearchV1/Getting+Started+with+the+JavaScript+Search+Fr...

I hope this would help you. 

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

Hi Praveen

There is no OOTB integration or connector component between these two products as of now.

Option 1:

You would have to create a custom AEM service and integrate using its Rest API - which it supports. Here is a community article on how to hook a Restful service into AEM.

Link: https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html

Creating Adobe Experience Manager bundles that invoke third party Restful web services

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();
            }

 

Option 2:

Coveo can be programmed using JAVAScript API. We can use Java-scripting in AEM to achieve the needful.

Link:-  https://helpx.adobe.com/experience-manager/using/custom-carousel-components.html

Coveo JS API docs:- https://developers.coveo.com/display/public/JsSearchV1/JavaScript+Search+Framework+V1+Home

Getting started :- https://developers.coveo.com/display/public/JsSearchV1/Getting+Started+with+the+JavaScript+Search+Fr...

I hope this would help you. 

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni