<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Reindex all search indexes programmatically.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=14033878" />
  <subtitle>Reindex all search indexes programmatically.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=14033878</id>
  <updated>2026-04-05T07:18:50Z</updated>
  <dc:date>2026-04-05T07:18:50Z</dc:date>
  <entry>
    <title>RE: Reindex all search indexes programmatically.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=70431252" />
    <author>
      <name>Kailash Yadav</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=70431252</id>
    <updated>2016-02-25T09:35:47Z</updated>
    <published>2016-02-25T09:35:47Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div class="quote-title"&gt;Achmed Tyrannus Albab:&lt;/div&gt;&lt;blockquote&gt;&lt;div class="quote-title"&gt;Hitoshi Ozawa:&lt;/div&gt;&lt;blockquote&gt;Take a look at the following&lt;br&gt;http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/kernel/search/IndexerRegistryUtil.html&lt;br&gt;&lt;br&gt;Example to reindex user:&lt;br&gt;Indexer indexer = IndexerRegistryUtil.getIndexer(User.class);&lt;br&gt;indexer.reindex(userId);&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt;Any tips on how to reindex search ?&lt;/blockquote&gt;&lt;br&gt;If you want to reindex all content from code, check following method : https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/com/liferay/portlet/admin/action/EditServerAction.java#L369&lt;br&gt;&lt;br&gt;If you want reindex a particular object do like:&lt;br&gt;&lt;pre&gt;&lt;code&gt;Indexer indexer = IndexerRegistryUtil.getIndexer(User.class);
indexer.reindex(userId);&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Kailash Yadav</dc:creator>
    <dc:date>2016-02-25T09:35:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Reindex all search indexes programmatically.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=70429659" />
    <author>
      <name>Achmed Tyrannus Albab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=70429659</id>
    <updated>2016-02-25T08:58:17Z</updated>
    <published>2016-02-25T08:58:17Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Hitoshi Ozawa:&lt;/div&gt;&lt;blockquote&gt;Take a look at the following&lt;br /&gt;http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/kernel/search/IndexerRegistryUtil.html&lt;br /&gt;&lt;br /&gt;Example to reindex user:&lt;br /&gt;Indexer indexer = IndexerRegistryUtil.getIndexer(User.class);&lt;br /&gt;indexer.reindex(userId);&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Any tips on how to reindex search ?</summary>
    <dc:creator>Achmed Tyrannus Albab</dc:creator>
    <dc:date>2016-02-25T08:58:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Reindex all search indexes programmatically.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=14043030" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=14043030</id>
    <updated>2012-05-21T23:46:33Z</updated>
    <published>2012-05-21T23:46:33Z</published>
    <summary type="html">Take a look at the following&lt;br /&gt;http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/kernel/search/IndexerRegistryUtil.html&lt;br /&gt;&lt;br /&gt;Example to reindex user:&lt;br /&gt;Indexer indexer = IndexerRegistryUtil.getIndexer(User.class);&lt;br /&gt;indexer.reindex(userId);</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2012-05-21T23:46:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: Reindex all search indexes programmatically.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=14041745" />
    <author>
      <name>Vipin Bardia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=14041745</id>
    <updated>2012-05-21T23:21:18Z</updated>
    <published>2012-05-21T23:21:18Z</published>
    <summary type="html">Hi Rahul,&lt;br /&gt;&lt;br /&gt;You can took a reference from Liferay OOTB portlet.&lt;br /&gt;&lt;br /&gt;EditServerAction is the class which contains protected void reindex(ActionRequest actionRequest) method.&lt;br /&gt;This method is used to reindexing, hope it helps....&lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Vipin Bardia&lt;br /&gt;&lt;a href="http://vkbardia.blogspot.in"&gt;vkbardia.blogspot.in&lt;/a&gt;</summary>
    <dc:creator>Vipin Bardia</dc:creator>
    <dc:date>2012-05-21T23:21:18Z</dc:date>
  </entry>
  <entry>
    <title>Reindex all search indexes programmatically.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=14033877" />
    <author>
      <name>Rahul Pande</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=14033877</id>
    <updated>2012-05-21T14:44:19Z</updated>
    <published>2012-05-21T14:44:19Z</published>
    <summary type="html">Hi All,&lt;br /&gt;&lt;br /&gt;Does anyone know how to re-index programmatically in liferay, as we do from control panel ?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Rahul</summary>
    <dc:creator>Rahul Pande</dc:creator>
    <dc:date>2012-05-21T14:44:19Z</dc:date>
  </entry>
</feed>
