Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay CE 7.2 - Searchable Wiki Assets
Hi 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
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.
Powered by Liferay™