How to implement full text search for a webpage?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Sanjana12 ,
In order to implement a search, at high level following steps needs to be followed.
1. Create AEM component - This will accept search text and render search results as per site design/UX. This component will call Search Service with given search string and render the result on the page got from the search service.
2. Create a AEM Search Service - AEM servlet/OSGi component to create and execute a query to search the results in the repository using QueryBuilder API.
3. Index the property
Please refer tutorial -
Simple search implementation guide | Adobe Experience Manager
Hello Sanjana
Use AEM Search Core component [1] for search implementation.
@Sanjana12 ref. https://www.aemcomponents.dev/content/core-components-examples/library/commerce/search.html
QueryBuilder URL: ( http://localhost:4502/libs/cq/search/content/querydebug.html )
Query:
path : <path_under_which_to_search>
fulltext : "string to be searched"
fulltext.relPath = ./
Refer https://medium.com/@shubhanshu.singh/aem-fulltext-lucene-search-implementation-part-1-cd99687ff736
https://sourcedcode.com/blog/aem/find-aem-jcr-nodes-with-full-text-search for full text search.
AEM Search OOTB component-https://experienceleague.adobe.com/docs/experience-manager-core-components/using/components/quick-se...
Create oak:index of the properties.
Hi @Sanjana12 ,
In order to implement a search, at high level following steps needs to be followed.
1. Create AEM component - This will accept search text and render search results as per site design/UX. This component will call Search Service with given search string and render the result on the page got from the search service.
2. Create a AEM Search Service - AEM servlet/OSGi component to create and execute a query to search the results in the repository using QueryBuilder API.
3. Index the property
Please refer tutorial -
Simple search implementation guide | Adobe Experience Manager
Views
Likes
Replies
Views
Likes
Replies