XF 2.0 Default XF Search settings?

PJK

Active member
I've long has issues with my forum search, even since vBulletin, then with XF 1.5. I recently upgraded to XF 2 and bought Enhanced Search and it's causing issues with the server. I'm working on getting that fixed, but disabled it for now to test the XF 2 default search. It doesn't seem to work great, I searched for "how to practice" and got this error:
  1. The following words were not included in your search because they are too short, too long, or too common: how, to
What's the best settings for the default search to get decent results?
Thanks.
 
/admin.php?options/groups/searchOptions/

This is the minimum length of a word that can be searched by the index. With the default search system, this should correspond with the MySQL full text minimum word length (normally 4).

So basically you would need to increase that on MySQL side. Probably not recommended. Anyways, here: https://www.electrictoolbox.com/mysql-full-text-index-word-length/

The stop word list is in /your_xf_root/src/XF/Search/Source/MySqlFt.php in public function getStopWords().

Your best options are probably really ES and a google search maybe https://xenforo.com/community/resources/google-search.6639/
 
Your best options are probably really ES and a google search maybe https://xenforo.com/community/resources/google-search.6639/
Thanks. ES has been crashing several times a day lately. I'm looking to add some RAM to the server, but not sure how much yet. Any suggestions? Others said they have a separate server just for the search, but curious of the costs for that. I used Google Search before on XF 1.5 and it worked, but wasn't ideal, especially now with the ads.
 
We've given 14GB RAM to a 500k posts board, but we're also doing more complex searches in real-time (aggregations and stuff like that). That's probably overkill for you, but 2GB was not nowhere close to be enough on a standard board anyways. Try out what others have suggested, like 4GB or something. There's officially only one recommendation and that is not to give more than 50% of your RAM to ES and not more than 32GB. See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html
 
  • Like
Reactions: PJK
I'm looking to add some RAM to the server,
Instead of adding RAM, I'd suggest getting another VPS just for ES and starting out with 2GB on it and if that's constrained bump it up to 4GB. ES may need some tuning, but having it on a separate VPS instance would be a better solution, especially if in the same DC and they offer private IP's for VPS -> VPS communication.
 
  • Like
Reactions: PJK
Back
Top Bottom