vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I allow a 3-character search? (https://vborg.vbsupport.ru/showthread.php?t=205705)

gle041 02-17-2009 07:21 PM

How do I allow a 3-character search?
 
Currently my vBulletin won't let me search for anything 3 characters or less.

How can I allow a 3 character search?

Running vB 3.7.3

Thanks in advanced!

bananalive 02-17-2009 07:24 PM

AdminCP -> vbulletin options -> Message Searching Options -> Search Index Minimum Word Length

gle041 02-17-2009 08:22 PM

Thank you, I just did that but now when I search for a 3 character word that I know should have results it says nothing found. Why is this?

Do I have to rebuild something?

Thanks.

dismas 02-17-2009 08:41 PM

If you go to Maintenance > Update Counters > Rebuild Search Index, I'm pretty sure that will do what you want.

gle041 02-17-2009 09:37 PM

Just did that, still not coming up with results. In the settings I was told to change in the second post, I noticed it says "MySQL Fulltext has its own minimum word length as well that must be changed at the server level." on the page as well. Is that something I need to do?

snakes1100 02-17-2009 09:38 PM

Quote:

Originally Posted by bananalive (Post 1747195)
AdminCP -> vbulletin options -> Message Searching Options -> Search Index Minimum Word Length

This only applies if your using the vbulletin built in default search.

If your using MySQL FULLTEXT search, you need to apply new settings to my.cnf and restart MySQL.

ft_min_word_len = 3
ft_max_word_len = 25

gle041 02-17-2009 09:40 PM

Okay, under my search type it says "Your forum is currently using the Fulltext search engine. "

How would I do what you said above?

Thanks a bunch for your help!

snakes1100 02-17-2009 09:50 PM

ssh into server.

depending on system

RH, CentOS
nano /etc/my.cnf

Debian
nano /etc/mysql/my.cnf

Add those two variables i posted above to the [mysqld] section.

ctrl+x
answer yes
hit return

Then type one of the following, again dependent on system.
service mysql restart
service mysqld restart
/etc/rc.d/init.d/mysql restart
/etc/rc.d/init.d/mysqld restart
/etc/init.d/mysql restart
/etc/init.d/mysqld restart

gle041 02-17-2009 09:53 PM

I don't think I have access to do that, I'm on a shared hosting plan from LunarPages. Would I need to contact them?

snakes1100 02-17-2009 09:54 PM

yes you would.

i doubt they will change it for you tho.

gle041 02-17-2009 09:56 PM

Yikes. Okay, well is there any way I could allow a 3 character search? What about if I use the "built in default search"?

snakes1100 02-17-2009 09:59 PM

u can switch it back to the vb search and set the limit in the admincp as suggested above by banana.

dismas 02-17-2009 10:14 PM

If you know that you'll only have a limited number of three letter words that users would search for, you can put them in the "Words to be Included Despite Character Limit" field. That way your board won't index common words such as "the, for, way, you, can, put, not, fix, yes, and" and so on.

Shamil. 02-18-2009 12:08 AM

Quote:

Originally Posted by dismas (Post 1747332)
If you know that you'll only have a limited number of three letter words that users would search for, you can put them in the "Words to be Included Despite Character Limit" field. That way your board won't index common words such as "the, for, way, you, can, put, not, fix, yes, and" and so on.

Is there some sort of a hack to get round this?

dismas 02-18-2009 12:55 AM

Quote:

Originally Posted by ct2k7 (Post 1747407)
Is there some sort of a hack to get round this?

What do you mean? If you're using the default vB search, you just have to put the three-letter words that you want added to the search index into the field that I mentioned, "Words to be Included Despite Character Limit".

For instance, I run an automotive/offroad forum, so I have things like O2, ATV, ABS, and fan included in the search database while my minimum character limit is set to 4 characters. So those words are still able to be searched for even though my limit is 4. No hack necessary.


All times are GMT. The time now is 08:43 AM.

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.02537 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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