Message Boards

Liferay CE 7.2 - Searchable Wiki Assets

H Seemann, modified 2 Years ago.

Liferay CE 7.2 - Searchable Wiki Assets

New Member Posts: 8 Join Date: 2/10/20 Recent Posts

Hi all,

we use the liferay wiki. In that wiki it is possible to upload or relate assets.

For example:

  1. Wiki page: "Lorem Ipsum" -> Image:" test image" is directly uploaded via the upload function at the wiki. 
  2. Wiki page: "Lorem Ipsum" -> Related Assets: "test image2" is uploaded at the documents and media folder and related to the "Lorem Ipsum" page

The test image2 is searchable at the Liferay Search, but the relation to the wiki page "Lorem Ipsum" cannot be established. 

The "test image" is not searchable at all.

And now the Question: Is it possible to make any of them searchable in that context?

Regards,

H.Seemann

thumbnail
Russell Bohl, modified 2 Years ago.

RE: Liferay CE 7.2 - Searchable Wiki Assets

Expert Posts: 289 Join Date: 2/13/13 Recent Posts

I am not certain of this, but I don't think that asset relation affects the search. At least, I don't see in the WikiPageIndexer that related asset fields are added to the wiki page's document.

You might be able to do this yourself with a custom module holding an IndexerPostProcessor. In postPRocessDocument, get and index the fields from the related entries. See the Liferay Bldae samples repo for an example.