vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   [How-TO vB 4] Force vB 4 search engine to find all keywords by default (https://vborg.vbsupport.ru/showthread.php?t=243997)

RedFoxy 06-04-2010 10:00 PM

[How-TO vB 4] Force vB 4 search engine to find all keywords by default
 
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

ChopSuey 06-06-2010 02:29 PM

I wouldn't do this lol. But thanks for the article :)

RedFoxy 06-06-2010 08:49 PM

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...

ChopSuey 06-07-2010 06:56 PM

I'd rather use Sphinx search :D

RedFoxy 06-07-2010 07:57 PM

what is it and how is it?

ChopSuey 06-08-2010 03:55 PM

Thread on vB.com

Or

https://vborg.vbsupport.ru/showthread.php?t=127868 - The one here.

RedFoxy 06-09-2010 01:06 AM

Already installed and... I've a lot of troubles like last one: https://vborg.vbsupport.ru/showthrea...60#post2050760

ChopSuey 06-09-2010 09:26 AM

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

:D


All times are GMT. The time now is 02:22 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.01025 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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