Now you have working Guestbook and Guestbook Admin portlets. The Guestbook portlet lets users add, edit, delete, and configure permissions for guestbook entries. The Guestbook Admin portlet lets site administrators create, edit, delete, and configure permissions for guestbooks. In the case of a very popular event (maybe a Lunar Luau dinner at the Lunar Resort), there could be many guestbook entries in the portlet, and users might want to search for entries that mentioned the delicious low-gravity ham that was served (melts in your mouth). Searching for the word ham should display these entries. In short, guestbook entries must be searchable via a search bar in the Guestbook portlet.
To enable search, you’ll add an indexer for guestbooks and their entries. Although you probably won’t have enough guestbooks in a site to warrant searching the Guestbook Admin portlet, creating a guestbook indexer has other benefits. In a later section, you’ll asset-enable guestbooks and guestbook entries so Liferay DXP’s Asset Publisher can display them. Enabling search is a prerequisite for this–you must index any entity that you want to make an asset.
But assets are for later. Right now it’s time to create those indexers. Ready?