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
RE: Liferay elastic search - indexing a Liferay table
Hi - I see that Layout table is not indexed in Liferay by default (dont see it part of Index Actions under system administration), is there someway to add it to indexing or do we have to write the indexer ? Thanks
If you want to index Layout objects, you have to write a new Indexer.
You have also to modify Liferay Layout code in order to call new indexer because Liferay out of the box doesn't call the indexer in every operation. For more information see this post: https://community.liferay.com/forums/-/message_boards/message/96835069
Thank you !
Hi - What is the best way to create a indexer in liferay 7 , is it as a liferay module project or hook ? I use eclipse ide. Thanks
Hi Leo,
You can create a module project to create an Indexer and LayoutServiceWrapper to update and delete Indexes
There is an excellent tutorial for same by liferay at https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/creating-a-guestbook-indexer
Powered by Liferay™