Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-14-2013, 10:38 PM
NeXuM NeXuM is offline
 
Join Date: Mar 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default enable 3-letters words in search

I can't figure how to enable 3-letters words in search. Everytime i search for a 3-letters word, it returns no result.

- I have enabled mysql full text search
- i have set the minimum length to 3 in vbulletin options
- i have rebuilt search engine in vbulletin's maintenance
- i have edited my.cnf and added "ft_min_word_len=3" (i run a dedicated server)
- rebooted the server after editing my.cnf

WHY it still isn't working ???
Reply With Quote
  #2  
Old 07-15-2013, 09:02 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated: I was full of crap. I forgot to alter the new mysql to handle full text searches. Works fine.

@nexum .. Works fine in vb4.20. Give JIRA a good check to see if it is a known issue, someone might have posted a fix.

My Test Conditions:
- vb4.2.0 (Unmodified, out of the box)
- Forum Only:
- words: mom dad IBM
- areas: title, post, tags
Rebuilt search indexes --- Just in case.
-----
Modified sql to handle 3 characters. <!-- Forgot this step

Currently on my board we use Sphinx. We wrote our own drivers for Sphinx and have been very pleased. Digital Point sells a Sphinx driver for VB, but I have not tested it, although I am sure it works.

Updated: Apparently vbulletin search can use 'and' 'or' - I probably wasn't familiar enough with vbulletin when I tested it way back then. Oh well! Sphinx has worked well for us.
Reply With Quote
  #3  
Old 07-15-2013, 09:12 PM
NeXuM NeXuM is offline
 
Join Date: Mar 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry i just realised i posted on the wrong forum. I run vBulletin 3.6.4. I found many threads that said it was possible to enable 3-characters words in search, but it didn't work for me when i followed instructions.

I never heard of JIRA so it is probably a vb4 feature.
Reply With Quote
  #4  
Old 07-15-2013, 09:21 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem, I do that all the time!

--------------- Added 15 Jul 2013 at 15:26 ---------------

Quote:
Originally Posted by NeXuM View Post
I never heard of JIRA so it is probably a vb4 feature.
JIRA is the software that vbulletin uses to track bug reports etc. Very useful, takes a bit of getting use to, but then you will really like it. I think on the vbulletin site once you log-in, you can use the menu option 'TRACKER'. There might even be a link from vb.org here. Take the time to learn it, you will save yourself a few headaches.
Reply With Quote
  #5  
Old 07-15-2013, 09:38 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to rebuild the fulltext indecies, doing a quick repair on the post and thread tables should fix the problem.

If you have a dedicated server, you should really checkout sphinx and save yourself a ton of headaches.
Reply With Quote
  #6  
Old 07-15-2013, 09:40 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zach, he runs 3.6.4, im not sure if the old code for sphinx on 3.8.x works on 3.6.x, but it may.
Reply With Quote
  #7  
Old 07-15-2013, 09:45 PM
NeXuM NeXuM is offline
 
Join Date: Mar 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
You need to rebuild the fulltext indecies, doing a quick repair on the post and thread tables should fix the problem.

If you have a dedicated server, you should really checkout sphinx and save yourself a ton of headaches.
awesome ! it fixed my problem. Thank you !

what is sphinx and what ares the advantages ?
Reply With Quote
  #8  
Old 07-15-2013, 09:50 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sphinx uses a flat file search, were as vbulletin uses a db based search, far less resources needed using sphinx.

There are disadvantages though to using sphinx, as vbulletins search sucks, basically the way it stores its data, sphinx loses the ability to search w/ sorting.

Vbulletin manipulates its sorts.
Reply With Quote
  #9  
Old 07-15-2013, 10:18 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The post was in the vB4 section, so I made the suggestion.
Reply With Quote
  #10  
Old 07-22-2013, 08:52 PM
NeXuM NeXuM is offline
 
Join Date: Mar 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since i changed ft_min_word_len to 3 my mysql server kept randomly crashing and i think this is because of the recent change to ft_min_word_len.

Is it possible that ft_min_word_len=3 is causing mysql to crash on a dedicated server (i3 2130 / 2 cores / 8gb ram) ? My forum has 150k posts and the search engine is used quite frequently.

Where can i find documentations/tutorials on the procedure to switch to sphinx search engine ?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04480 seconds
  • Memory Usage 2,246KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete