vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   3 word search? (https://vborg.vbsupport.ru/showthread.php?t=287743)

v123shine 09-11-2012 03:50 PM

3 word search?
 
Hello...

How to make 3 word search in vb 3.8.x ??

I following this step, but still can't work.

STEP 1
Search Type -> Change "Remove Fulltext Indexes" to "YES"

STEP 2
Vbulletin Options -> Message Searching Options -> Search Index Minimum Word Length put 3 into the text field

STEP 3
Edit MySQL's my.cnf and add below code:
Code:

[mysqld]
ft_min_word_len=3

[myisamchk]
ft_min_word_len=3

STEP 4
Maintenance -> Update Counter -> Rebuild Search Index

And the result, i still cant search 3 letter words in Vbulletin :(

Can someone help me, please!

Thank you

kh99 09-13-2012 11:59 PM

I tried what you did and it does seem to work, except that in the file includes/searchwords.php there's a list of common words that won't be included in the search index, many of them 3 letter words. If you want to be able to search for those words you'd have to remove them from that array and rebuild your search index. There is a hook 'search_stopwords' right under where the array is defined, so you could make a plugin there and do whatever you want to the $badwords array.


All times are GMT. The time now is 10:51 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.01144 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete