Message Boards

Journal Article update is redinixing

Adrian Pol, modified 4 Years ago.

Journal Article update is redinixing

Junior Member Posts: 49 Join Date: 3/14/17 Recent Posts
Hi guys, I need to modify a custom field of a Journal Article and that it is visible in the indexes, I'm looking inside the JournalArticle service and I see that the JournalArticle ModelListener only has the clearCache, so I would like to ask if anyone knows to make me sureJournalArticleLocalService.updateJournalArticle (journalArticle);Are you reindexing the JournalArticle? or i need call to IndexerRegistryUtil.getIndexer(JournalArticle.class).reindex(journalArticle);
thumbnail
Andrew Jardine, modified 4 Years ago.

RE: Journal Article update is redinixing

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hey Adrian,If you set the custom field to be searcheable, then it should be added to the index for you automatically when you add/update/delete the journal article. Is that not working for you?