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
BedrockMission!

Learn More

View all

Sign in to view all badges

Custom Oak Indexes : AEM Part-4 (Autosuggestion) | AEM Community Blog Seeding

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,159 likes

Total Posts

6,260 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,159 likes

Total Posts

6,260 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

31-05-2021

BlogImage.jpg

Custom Oak Indexes : AEM Part-4 (Autosuggestion) by Bimmisoi

Abstract

As of now we have implemented Stop Words, Synonyms Words, Custom Index Creation. let's implement auto suggestion for search.

Autosuggestion : Autosuggestion/Autocomplete/Predictive search is a search feature where the search engine predicts the user’s query and provides suggestions as the user types. The user can select any of the autocomplete suggestions and be taken to results without having to manually type every character.

We can follow below steps to implement this.
Create indexRules node : type - nt:unstructured
Create cq:PageContent node : type - nt:unstructured
Create properties node : type - nt:unstructured
Create jcrTitle node : type - nt:unstructured

Add below property in those properties which you want to be fetched in auto search drop down.
Properties : useInSuggest : true [Boolean]

After reindex changes will start reflecting.

Hope this helps!!

Happy Coding 🙏

If you like my post and find it helpful, you can buy me a coffee.

Read Full Blog

Custom Oak Indexes : AEM Part-4 (Autosuggestion)

Q&A

Please use this thread to ask the related questions.

AEM AEMEBlogSeeding Experience Manager