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 6.2 automatic reindex
Ayatullah Abdulhakim, modified 11 Years ago.
Junior Member
Posts: 36
Join Date: 5/12/13
Recent Posts
I want to know when the lucene reindex the database after adding a new content?
Ayatullah Abdulhakim, modified 11 Years ago.
Junior Member
Posts: 36
Join Date: 5/12/13
Recent Posts
The issue that after adding a new content, it cannot be appeared when searching it using search web content portlet.
When you add a new content, the search index is updated. The search index is never reindexed.
Are you adding the the web content through the UI, the API or are you adding it directly to the database? If you're using the UI or the API, the search index should automatically be updated when you add the web content. And if you're adding the web content directly to the database, well, you shouldn't do it.
Are you adding the the web content through the UI, the API or are you adding it directly to the database? If you're using the UI or the API, the search index should automatically be updated when you add the web content. And if you're adding the web content directly to the database, well, you shouldn't do it.
Ayatullah Abdulhakim, modified 11 Years ago.
Junior Member
Posts: 36
Join Date: 5/12/13
Recent Posts
I added it from ui, by adding a web content display portlet and add a content for it,
currently the liferay not update the search index directly after adding or modifying the content, how can i do this manually?
currently the liferay not update the search index directly after adding or modifying the content, how can i do this manually?
To manually reindex the search index:
Three additional idea:
- Control Panel > Configuration > Server Administration
- Make sure you're on the "Resources" tab
- Click the "Execute" button next to "Reindex all search indexes"
Three additional idea:
- Make sure the "Searchable" checkbox is checked when you are creating your web content article.
- Make sure the Display Date for your web content article is set to a date in the past. If the display date is in the future, the article will not show up in search results.
- If you are using the "Web Content Search" portlet, make sure that the article you are searching for is displayed in a "Web Content Display" portlet.
Ayatullah Abdulhakim, modified 11 Years ago.
Junior Member
Posts: 36
Join Date: 5/12/13
Recent Posts
Thanks for support,
I don't need to reindex all database, i need to update the index only as you said in the previous comment.
All the checks that you listed are applied on my content.
"Searchable" checkbox is checked
the Display Date is set to a date in the past
the article is displayed in a "Web Content Display" portlet.
Currently i am trying to override editarticle action to update the index manually using
Indexer indexer = IndexerRegistryUtil.getIndexer(JournalArticle.class);
indexer.reindex(journalArticle);
Is this right?
I don't need to reindex all database, i need to update the index only as you said in the previous comment.
All the checks that you listed are applied on my content.
"Searchable" checkbox is checked
the Display Date is set to a date in the past
the article is displayed in a "Web Content Display" portlet.
Currently i am trying to override editarticle action to update the index manually using
Indexer indexer = IndexerRegistryUtil.getIndexer(JournalArticle.class);
indexer.reindex(journalArticle);
Is this right?
Does that mean, I need to manually reindex the web content after I added them?
I am facing this issue in clusterd environment. After adding one webcontent it is not coming as part of search result. Not even after 1hr. But once I reindex the search index manually, it started working. Is there any way to make that automatic? May be a hook? Any code example is welcome. Thanks in advance.
I am facing this issue in clusterd environment. After adding one webcontent it is not coming as part of search result. Not even after 1hr. But once I reindex the search index manually, it started working. Is there any way to make that automatic? May be a hook? Any code example is welcome. Thanks in advance.
Mithun Seal:
I am facing this issue in clusterd environment.
Usually this means your clustering config is incorrect. The other nodes in the cluster are not getting the message that new content has been added and are not in turn updating their local indices.
Manual reindex just pulls everything from the DB and creates a fully populated index. The indexes will be correct, but only until the next content add/update...
Achmed Tyrannus Albab, modified 10 Years ago.
Regular Member
Posts: 158
Join Date: 3/5/10
Recent Posts
David H Nebinger:
Mithun Seal:I am facing this issue in clusterd environment.
Usually this means your clustering config is incorrect. The other nodes in the cluster are not getting the message that new content has been added and are not in turn updating their local indices.
Manual reindex just pulls everything from the DB and creates a fully populated index. The indexes will be correct, but only until the next content add/update...
Hi, sorry to bring up old post.
I am having a similar issue with DDL searching.
------------------------------
Example:
v1.1 A
v1.2 B
v1.3 C
v1.4 D
When i do a search :
for A no result return,
for B no result return,
for C result return,
for D no result return.
------------------------------
D will only return if I do a manual "Reindex all search indexes." from the Server Administration.
Why is this happening and how do i get the latest results from the Search?
Thanks in advance.
Liferay 6.2 GA4
Hi,
You have to execute
Control Panel > Configuration > Server Administration
Make sure you're on the "Resources" tab
Click the "Execute" button next to "Reindex search indexes"
You have to execute
Control Panel > Configuration > Server Administration
Make sure you're on the "Resources" tab
Click the "Execute" button next to "Reindex search indexes"
You can also use my Index Checker portlet, in order to verify your index status:
https://web.liferay.com/es/marketplace/-/mp/application/70121999
(You have to execute in all cluster nodes)
https://web.liferay.com/es/marketplace/-/mp/application/70121999
(You have to execute in all cluster nodes)