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: Reindex all search indexes programatically
In Liferay 6.2 we can trigger reindex all search indexes in the
control panel. for that login is needed. I am looking for options
where we can add reindexing as part of post deployment as script or
creating web service which will perform reindexing when it is hit or
creating a schedular which runs once every week something like that. I
found that there is reindexing method in EditServerAction but it is
restricted as it is protected.
Is there any way we can implement this reindexing
programetically without user details or login?
You do not need any of these things unless you are manually changing the database outside of Liferay, not using the API.
And, if you need to do this reindexing because you are doing this, you're absolutely using the product the wrong way.