XF 2.2 No search results after turning off enhanced, falling back to inbuilt, and rebuilding search

Mouth

Well-known member
My hosting provider is having an extended hardware issue/outage with the server I have Elastic installled/running, thus search attempts are returning an error and posting is lagging etc.

I have turned off/disabled ES ( /admin.php?enhanced-search/ ) and ran search rebuild for threads ( php cmd.php xf-rebuild:search --type=threads --truncate ) It takes ~1 sec ( I would expect a lot longer for 175K+ threads) and when using search for word(s) in thread titles, even basic words, empty search results is given.

What have I missed?

DB search index table was previously, long time ago, truncated and ES has been active for years. Don't want a full or posts rebuild at this stage into DB, just thought I'd make threads available until ES was available again.
 
Last edited:
I have turned off/disabled ES ( /admin.php?enhanced-search/ ) and ran search rebuild for threads ( php cmd.php xf-rebuild:search --type=threads --truncate )

Slight syntax issue on the cli parameters, not --type=threads but --type=thread (singular vs plural). So the search rebuild command should be php cmd.php xf-rebuild:search --type=thread --truncate which is now rebuilding as expected.

/admin.php?tools/rebuild leads one to believe it's threads (plural), so I'll submit a bug thread on the no syntax error.
 
Last edited:
php cmd.php xf-rebuild:search --type=thread --truncate
This gives search results that includes post content, not just thread titles. I had expect only the later when constraining content type.
Is that not the case? What is the difference between thread and post content type when rebuilding search index?
 
Back
Top Bottom