Expand my Community achievements bar.

SOLVED

How to implement search functionality using AEM 6.0

Avatar

Former Community Member

Hi All,

I need to implement search functionality on my home page using AEM 6.0.

When I write some text like dinning it will show me list of restaurants near by my location.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

This component example searches the JCR. However - using JS logic and a custom service on the back end (Java/OSGi), you can build a component that knows how to search the internet for content.  ie:

http://stackoverflow.com/questions/3727662/how-can-you-search-google-programmatically-java-api

One of the powerful features of AEM is being able to develop custom services via Java and OSGi bundles. 

View solution in original post

3 Replies

Avatar

Level 10

There is a good discussion on this use case in this topic:

[img]Search.png[/img]

See: http://docs.adobe.com/docs/en/aem/6-0/develop/the-basics/website.html

Avatar

Former Community Member

Hi,

Thanks for the link.

Search component is used for site search within CQ application content. Could we also use Search component for internet search ? or it's already their in Search script ?

Thanks

Avatar

Correct answer by
Level 10

This component example searches the JCR. However - using JS logic and a custom service on the back end (Java/OSGi), you can build a component that knows how to search the internet for content.  ie:

http://stackoverflow.com/questions/3727662/how-can-you-search-google-programmatically-java-api

One of the powerful features of AEM is being able to develop custom services via Java and OSGi bundles.