{"id":7450,"date":"2019-10-23T17:56:54","date_gmt":"2019-10-23T12:26:54","guid":{"rendered":"https:\/\/www.argildx.us\/?p=7450"},"modified":"2019-12-12T17:03:05","modified_gmt":"2019-12-12T11:33:05","slug":"fulltext-search-in-aem-pages-assets-custom-search-pdf-excel-and-powerpoint","status":"publish","type":"post","link":"https:\/\/www.argildx.us\/technology\/fulltext-search-in-aem-pages-assets-custom-search-pdf-excel-and-powerpoint\/","title":{"rendered":"Full-Text Search in AEM Pages and Assets including PDF, Excel and PowerPoint"},"content":{"rendered":"\n
Search is an important feature of any website. Implementing an efficient search on your website can considerably improve the experience of your visitors. For websites on AEM, creating a custom search component without creating any new indexes has been a challenge. <\/p>\n\n\n\n
We created Full-Text Search – a custom search component to help end users search through all your web pages and published assets. This includes searching through PDFs, Excel files, PowerPoint presentations, asset metadata and SEO tags. This is a generic search component which can be used to search within any content and DAM hierarchy.<\/p>\n\n\n\n
As compared to the OOTB search component of AEM, the custom search component does a full sentence search instead of individual words of sentences. For asset search it can even provide the page number in which the text is present. <\/p>\n\n\n\n
To create a search component in AEM to enable users to search any word, number or sentence. Even special characters in AEM website pages as well as DAM assets (PDFs, Excel files, PowerPoint presentations). <\/p>\n\n\n\n
We used Omnisearch API with QueryBuilder, which in turn uses Lucene indexes to perform effective and efficient searching. <\/p>\n\n\n\n
For efficient searching, please validate your AEM instance has the following nodes. <\/p>\n\n\n\n
The basic UI will look like this but you can customize it the way you want.<\/p>\n\n\n\n
2. Add AJAX call on submit button click which sends search string and search location. <\/p>\n\n\n\n
3. Create a servlet which gets the search parameters: <\/p>\n\n\n\n
4. Create a query using ‘QueryBuilder\u2019 to perform the search. <\/p>\n\n\n\n
5. Parse the result in required format.<\/p>\n\n\n\n
6. Send the response in JSON. <\/p>\n\n\n\n
7. Parse the result on screen. <\/p>\n\n\n\n
Through Full-Text Search, you can improve the user journey on your AEM website as users can find the specific item they\u2019re looking for. Additionally, this custom search component will help you in site personalization as you can implement a user-permission based search. You can even integrate analytics with this search to understand your users\u2019 demands at a more granular level.<\/p>\n\n\n\n
Check out other articles in our blog<\/a> to learn about the different tools and features that we’ve created around and for different Adobe Experience Cloud solutions.<\/p>\n","protected":false},"excerpt":{"rendered":" Search is an important feature of any website. Implementing an efficient search on your website can considerably improve the experience of your visitors. For websites on AEM, creating a custom search component without creating any new indexes has been a challenge. We took up the challenge We created Full-Text Search – a custom search component to help end users search … Read more<\/a><\/p>\n","protected":false},"author":9,"featured_media":7462,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","content-type":"","footnotes":""},"categories":[66],"tags":[25,1539,171,1606,1543,1541],"yst_prominent_words":[],"acf":[],"yoast_head":"\n