Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Search Result component


Level 3

Hi All,

I am new to implementing site search feature in our AEM site and planned below components for Search functionality(not going for any external search)

1.)Global Search component - where user can provide search input and on submit show the search result component.

2.)Search Result component - Shows the search results with pagination.

Could you please suggest me the best way to implement search result component in AEM 6.3, Touch UI & Sightly.

Also please let me know whether we need to develop any API and Oak index for this requirement, if yes, Please let me know the procedure.

Thanks and Regards


6 Replies


Level 8


Few things  that I can think of at the top of my head now.

- Is that a full text search or property based search?

- Will you be using any external search servers like SOLR, Search & promote etc.?

- If search is within AEM, you can use Querybuilder predicates to fill in the criteria, put the limit,offset etc.

Creating indexes will fasten up the process, say you are searching for 60k products under a specified path, you can create index rules on certain set of properties.

May be if you can provide some additional details on the above, community will be able in a better position to answer your query.


Level 10

See this AEM topic:

How to Create a Fully Featured Internet Website

There is a discussion at end on how to create a Search Component.


Level 10

1. Use AEM Query builder API, it supports the concepts with which pagination typically works [0]

2. Pagination can be formed with simple logic in any language but you would need to use offset parameter in query builder

3 Consider creating index if data is huge.





Level 3

Hi All,

Thanks for the response.

It's  a fulltext search and includes tags also,restricting the search to the Country & language.

Not using any external search.

Search with in AEM.

Onsubmit of Search component, need to call service in java script & get the search result. Same result send to search result component.

Thanks, Ram.


Level 8

I am not sure how effective[performance aspects etc] AEM search, would be w.r.t full-text search.

We can await response from SME's for further inputs. So Basically, you would have to write your custom logic in servlets/service classes and put in the desired logic in there.


Level 3

Hi All,

Can anyone explain how Lucene indexing works with MSM based website?

Ex: If same image exists in US & UK site, how Lucene indexing work here?

Will Lucene create separate index for US & UK site?


Same index being used for US & UK site?

As per our requirement, we need to show the search results based on country & language specific and shouldn't show other country search results.

Could you please guide me to develop Lucene indexing for MSM based site?

Thanks and Regards,

P Raja Ramesh