Reindex an entity by the id

Posted on 20/01/2016 by Charalampos Chrysikopoulos

If we have a web content and we want to update the index of it we can do that with the following code:

IndexerRegistryUtil.getIndexer(JournalArticle.class).reindex(JournalArticle.class.getName(), article.getId());
This entry was posted in Uncategorized and tagged index, indexer, Liferay, snippet by Charalampos Chrysikopoulos