This question is about the best/simple way to achieve the website search functionality.
There are pages in the site, and each is made up of few components. When the end user searches for a keyword, it should return the list of all pages that have that keyword.
I have followed this example, which will store all the text field values of every rendering in a page, when indexed. It works but its only for the text fields.
Many of the components in my site have datasources that have treelist fields. So, I also need to search all those selected items for the keyword.
[There are many such treelist fields, each for a different template item]
Is there a way, where we can know if an item is being used in any page, either as a datasource or as one of the selected item in that datasource's treelist field.
What if I use the metadata. Metadata is a template in every page which has title and description, but the thing is the content author has to keep updating it. Not sure if this approach is correct.
My research on the search techniques online only gave me articles that talk about how to configure search, the first part. It's good, but it only gives the dump of the indexed content. There is a major second part on how to push that content to UI, which I could never find.
Any help about the best way to start or go about with this is appreciated.