Include Assets and Images in Search Results
The typical code for querying all documents in the current site, containing the word hippo, looks like this:
The query above searches for any type of document below contentBaseBean, which contains the word ' hippo'. The contentBaseBean is fetched with getSiteContentBaseBean(), which returns the root content bean of the current site. However, this search scope does not include images and assets. You can extend the query above to also search in Assets and Image Gallery as follows:
Note that search hits in Assets or Gallery will return HippoAssetBean and HippoGalleryImageSetBean instances as result.