Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin Tips & Tricks
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[How-TO vB 4] Force vB 4 search engine to find all keywords by default
RedFoxy's Avatar
RedFoxy
Join Date: Sep 2007
Posts: 179

 

Italy
Show Printable Version Email this Page Subscription
RedFoxy RedFoxy is offline 06-04-2010, 10:00 PM

Hi all!
By default vBulletin 4 search all keywords but don't force that all keywords must be present, that gives back a really huge result, like if you search "vbulletin plugin search engine modification" you'll find ALL threads that contains one or more words in your search... That's bad for huge forums, and your users will ask for a search engine like vBulletin 3...

The only way for a user to find a topic that have ALL keywords is to add AND between all keywords like "vbulletin AND plugin AND search AND engine AND modification", but not all user have a good skin and know how to use it, they just type words waiting to have the right results...

To change that, I forced my vBulletin 4.0.3pl1 suite (but I suppose that it goes with all versions) find all keywords in every search, if a user want find more result he still can add "OR" between one or more keywords.

I use it without troubles on my website SoftAir Mania with great successful!

To force vBulletin 4 search engine to find all keywords you need to edit a file: vb/search/criteria.php

PAY ATTENTIONS!
You do that modification at your own risk!


Open: vb/search/criteria.php

Search for: (it's about at row 1003)
PHP Code:
                default:
                    
$phrase $word
Replace with:
PHP Code:
                default:
//                    $phrase = $word; 
Save & Close.

I hope that you enjoy it!

PS: Sorry for my bad english
Reply With Quote
  #2  
Old 06-06-2010, 02:29 PM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wouldn't do this lol. But thanks for the article
Reply With Quote
  #3  
Old 06-06-2010, 08:49 PM
RedFoxy's Avatar
RedFoxy RedFoxy is offline
 
Join Date: Sep 2007
Location: Italy
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On my forum http://www.softairmania.it it was a great update, a lot of user appreciate it and now they use the search engine more often... Some user told me that to find something on my forum, they prefered to use google and not the internal search engine...
Reply With Quote
  #4  
Old 06-07-2010, 06:56 PM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd rather use Sphinx search
Reply With Quote
  #5  
Old 06-07-2010, 07:57 PM
RedFoxy's Avatar
RedFoxy RedFoxy is offline
 
Join Date: Sep 2007
Location: Italy
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what is it and how is it?
Reply With Quote
  #6  
Old 06-08-2010, 03:55 PM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thread on vB.com

Or

https://vborg.vbsupport.ru/showthread.php?t=127868 - The one here.
Reply With Quote
  #7  
Old 06-09-2010, 01:06 AM
RedFoxy's Avatar
RedFoxy RedFoxy is offline
 
Join Date: Sep 2007
Location: Italy
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Already installed and... I've a lot of troubles like last one: https://vborg.vbsupport.ru/showthrea...60#post2050760
Reply With Quote
  #8  
Old 06-09-2010, 09:26 AM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

https://vborg.vbsupport.ru/showpost....93&postcount=2

Reply With Quote
Reply


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 10:31 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.04012 seconds
  • Memory Usage 2,263KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete