Message Boards
Liferay CE 7.2 - Searchable Wiki Assets
Liferay CE 7.2 - Searchable Wiki Assets
New Member Posts: 8 Join Date: 2/10/20 Recent PostsHi all,
we use the liferay wiki. In that wiki it is possible to upload or relate assets.
For example:
- Wiki page: "Lorem Ipsum" -> Image:" test image" is directly uploaded via the upload function at the wiki.
- 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
RE: Liferay CE 7.2 - Searchable Wiki Assets
Expert Posts: 289 Join Date: 2/13/13 Recent PostsI 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.