Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Fulltext boolean search v.2.2 for vB Details »»
Fulltext boolean search v.2.2 for vB
Version: 1.00, by JohnWoo JohnWoo is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-07-2004 Last Update: Never Installs: 20
 
No support by the author.

Hello all!

Moving here from beta forum
https://vborg.vbsupport.ru/showthread.php?t=62218

This hack makes nearly same for vB3 as
[vB 2.2.x] - Mysql 4 Search hack
https://vborg.vbsupport.ru/showthread.php?t=51716
for vB2

You will need MySQL server v4.0.1 or better (but sometimes it may work on 3.23.xx). After installing you will be able to search with empty native vB index (word and postindex tables) and using modifiers.
Allowed modifiers + are ,-, * and "
All modifiers except * should be used only once for one word (in the beginning and without space).
* it should be used at the end of a word.
For example:
windows unix -> will find messages containing at least one these words.
+windows +unix -> will find messages with both this words.
windows* -> will find "windows", "windowss", "windowssauce" or "windowst".
*indows will NOT find "windows"
"some words" -> will find "some words of wisdom", but will not find "some extra words".
Search phrase length limitations replaced with results number limitation.
Value of old "Search Index Maximum Word Length" used to limit number of posts in the result returned by fulltext search (control panel/Message Searching Options)
Supposed that it must run faster then native vB search

History:
v.2.2 [5 Apr 2004]
- search words relevance (when sort by relevance) added at last
but little different then native vB (it may not work when searching with * modifiers)
- attempt to fix incompatibility with other hacks
=to upgrade replace code block #5 in search.php with latest one

v.2.1 [4 Apr 2004]
- Excluding from search forums with "Index New Posts in Search Engine" option set to "No"

v.2.0 [30 Mar 2004]
-"Similar Threads" now must start working (to move from 1.x to 2 just change one more script - functions_search.php)

v.1.9 [29 Mar 2004]
-checking if $query string is not empty before running fill text sql

v.1.8 [20 Mar 2004]
- line numbers and higlight code changed for VB3 Gold
- more tests and error explanations

v.1.7 [9 Mar 2004]
- MySQL error for administrators bug fixed
checking is $not_forumid string exixts before adding it to query

v.1.6 [9 Mar 2004]
- national letters bug fixed
preg_replace("~[^\w\"\-+\* ]~i", "", $query);
was replaced by
preg_replace("~[^\w\xC0-\xFF\"\-+\* ]~i", "", $query);

v.1.5 [8 Mar 2004]
- TABLE_PREFIX bug fixed
- slightly optimised SQL requests

v.1.4 [8 Mar 2004]
- delete_post_index function turned off
- more tests and error explanations

v.1.3 [7 Mar 2004]
- less code because of using native vB $postQueryLogic and $threadQueryLogic conditions
- more tests and error explanations

v.1.2 [7 Mar 2004]
- boolean mode can be turned off in AdminCP ("Allow Search Wild Cards" setting)
- "titles only" search fixed
- limiting number of matches retunned by fulltext search AFTER applying search conditions

v.1.1 [7 Mar 2004]
- HighLight support added

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 05-30-2005, 02:56 PM
nexialys
Guest
 
Posts: n/a
Default

the "actual" version of fulltext inside vB is not working at all... 75% of the results are falsed and bug on most Mysql systems because not fixed... that'S why vB 3.5 will ahve a complete new fulltext integration, mostly based on this one... logically... 0
Reply With Quote
  #203  
Old 05-30-2005, 03:27 PM
David Bott David Bott is offline
 
Join Date: Dec 2001
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah. Why thank you very much. Thus the issue we had when we made the move to VB3 with the high mysql loads and frequent site outages.

I am guessing then I do not need their...

ALTER TABLE thread ADD FULLTEXT INDEX (title);

...querty and I can dump that index.
Reply With Quote
  #204  
Old 05-30-2005, 03:43 PM
nexialys
Guest
 
Posts: n/a
Default

this actual hack was built before the full index modification was applied in vB 3.0.1, therefore you can delete that index... because vB added the fulltext in vB 3.0.2 ...
Reply With Quote
  #205  
Old 05-31-2005, 12:24 PM
David Bott David Bott is offline
 
Join Date: Dec 2001
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well in the VB version of the code, Full Text seems to work well other than the high loads. Meaning....if someone looks for "the quick brown fox" it finds that. However...I just received this...

Quote:
Is there any way to search for an exact phrase? On the Search FAQ page there are a couple of matching options, including "Match Complete Phrase", but on the Search Forums page there is only a keyword search. For example, if I search the forums for "whole house audio" it returns some 300 threads, all of which contain the three words somewhere, but not necessarily the whole phrase.

I've tried some things like using quotes and Boolean operators (AND, OR, NOT) -- with no luck. Am I missing something, or is this simply not an option?
I tested this and found he is correct. It does not hit like a full text search should.

Anyone have any thoughts on this?

Thank you.


*** Disreguard...NOTE...You need to have "Allow Search Wild Cards" set to YES in the Message Searching Options area of the Vb Options page.
Reply With Quote
  #206  
Old 06-08-2005, 09:23 PM
David Bott David Bott is offline
 
Join Date: Dec 2001
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello again...

I searched for the word RAID and the user name of BasementBob on my site in advanced mode. It retured no results even though their are threads by him with the word RAID in it. So the question is...Can you not use both the word box and the user name box at the same time with this hack running?

Can someome please test and advise.

Thanks
Reply With Quote
  #207  
Old 06-24-2005, 11:59 AM
David Bott David Bott is offline
 
Join Date: Dec 2001
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, have some more issues and I have no clue why.

In this thread you can see a user reported an issue with not finding posts with the serach that clearly has the words in it.

http://www.tivocommunity.com/tivo-vb...d.php?t=246239

After testing I had found this to be true and droped the indexes and regreated them based on the information provided in the install text file.

even tried to find that thread above by seraching for "channels" and even "DirectTV" and could not even find that thread that reported the same issue.

Any thoughts on this?

MySQL version = MySQL 4.1.10a
Reply With Quote
  #208  
Old 07-05-2005, 02:25 PM
David Bott David Bott is offline
 
Join Date: Dec 2001
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello...Anyone? Is this hack no longer supported?

Thank you.
Reply With Quote
  #209  
Old 07-05-2005, 03:51 PM
Steve St.Lauren Steve St.Lauren is offline
 
Join Date: May 2002
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you still have the hack installed? If so then you must have missed some part of the hack install. I just did a search on "+tivo +will +no +longer +change" in titles only in that forum to try to find the thread in question and it returned two threads that didn't include all of those terms in the search results - it shouldn't have returned those. My guess is that you missed some part of the hack install - check it over carefully again.
Reply With Quote
  #210  
Old 07-08-2005, 08:37 PM
David Bott David Bott is offline
 
Join Date: Dec 2001
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have done so now more than once. Not new to this at all as you may see. I just do not get it. Something justis not right and it happen both on TiVo Community Forum and AVS Forum.

Thank you kindly for the reply.

[Edited to removed requested found item.]
Reply With Quote
  #211  
Old 08-01-2005, 02:18 AM
klamm klamm is offline
 
Join Date: Sep 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guys, you saved me!

I'm running a >2 Million Posts Board with 500 Users on ... heaviest load during searches using the standard algorithm. Now I tried this hack (vb 3.0.8, including Erwins improved Addon) and load is going down to nearly zero!
Thank God for this hack!

Btw: The built-in-hidden-debug-beta-fulltext-VB-search - don't even think of trying it @ big boards. It will only crash your machines ...
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 11:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.18200 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_onlinestatus
  • (11)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