Loading...
 
Architecture / Installation

Architecture / Installation


[SOLVED] Search Index failure

posts: 33

I had to finally upgrade due to the hosting provider cutting off all PHP except 8. Went from 21.2 to 26.2. One site, permissions got a little messed up. But this site in question here has two issues. I will post a separate topic for each.

Immediately after the upgrade, even non-logged in users see a message that there is a search index failure. To ask the admin to update the index. When logged in as an admin, the search index failure banner suggesting a ssh command be executed (php console.php index:rebuild). But that as well as the web-based command (tiki-admin.php?page=search&rebuild=now) both fail. I have consulted the page https://doc.tiki.org/Rebuild-Unified-Index but nothing there seems to work or apply. It is a shared hosting platform so I do not have access to root or the web server account to sudo too. The error is:

error: Unsupported index type "lucene". Needs to be one of "mysql", "elastic" or "manticore". Try resaving the Search Control Panel

I did not get this on my other site that upgraded to 26.2 and PHP 8. I have cleared caches.

posts: 8633 Israel

{QUOTE(thread_id=>79477)

error: Unsupported index type "lucene". Needs to be one of "mysql", "elastic" or "manticore". Try resaving the Search Control Panel.{QUOTE}

‏ Hello Randy.
Login as a mean in the control panel search select MySQL full-text search.

I suppose you were using Lucene engine for search previously, and it has been removed from Tiki.

posts: 33
Bernard Sfez / Tiki Specialist wrote:

Login as a mean in the control panel search select MySQL full-text search.

I suppose you were using Lucene engine for search previously, and it has been removed from Tiki.


"Unified search engine" Is already set to "MySQL full-text search". Am not aware of what was set before. Have just been upgrading since Tiki 6. Never set anything "different" that I am aware of. (Do not recall the search index or engine at all. Is not enabled for non-registered users as it is.)

I do notice, next to the "Users available in search results", there is a box (fixed popup?) that states: "You need to set Unified search index". Of course, that and any of the other selection items only appear if you select "Unified search index" on the page.

posts: 33
I turned Unified Search Index off then on again (hitting apply between each). Then switched the search engine between all three of the options, settling back to the originally set "MySQL full-text search". Then set Unified Search Index off then on again. After all that, having tried it in between each change, the rebuild of the index finally worked (via the webpage). Not sure what had to be cleared out but it seems to have happened now.