Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Build Search-Index from Commandline Details »»
Build Search-Index from Commandline
Version: 1.00, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.x Rating:
Released: 04-08-2010 Last Update: 04-25-2010 Installs: 19
 
No support by the author.

Just a simple script that might be useful for someone ...

[s]Don't forget to adjust the path before running this![/s]
No longer necessary with new version.

Update 22.04.2010
I've polished the script a bit, it does no longer require to set the path (it will ask you for the path) and output some more status information

Update 26.04.2010
I've added a X % complete status message and changed the code a bit to avoid warnings if readline()-support is not available.

Important Note
[hr]fgf[/hr]
As stated above this Script is unsupported.
Any support requests except for proven bugs will be ignored, please do not waste your or my time writing them.
Thank you

Download Now

File Type: php searchindex.php (8.5 KB, 230 views)

Show Your Support

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

Comments
  #2  
Old 04-09-2010, 09:42 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I was wondering how I was going to rebuild mine as I am more then the 1.2 million mark.

That is where people were having problems right?
Reply With Quote
  #3  
Old 04-10-2010, 12:18 AM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andreas,
i got an Error
PHP Fatal error: require_once(): Failed opening required '/srv/www/vhosts/domain/httpdocs/vb/search/core.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vhosts/domain/httpdocs/searchindex.php on line 33
Reply With Quote
  #4  
Old 04-10-2010, 06:23 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is a standard vBulletin file.
If it is not there your installation is either broken - or you did not adjust the path.
Reply With Quote
  #5  
Old 04-10-2010, 09:35 AM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andreas,
the Permissions are wrong.
the script run´s now to the point that i can entry the elements.
then it goes to the Prompt.
Reply With Quote
  #6  
Old 04-10-2010, 10:09 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange

You can try to comment out the first two lines (error_reporting, ini_set) and see what happens
Reply With Quote
  #7  
Old 04-10-2010, 10:49 AM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andreas
Quote:
Suchindex neu erstellen
-----------------------
Hinweis: Wenn Sie den Index neu erstellen, sollten Sie den bestehenden vorher l? schen. Suchindex l?schen!
Empty Index [No]: yes

0) Alle
Suchindex w?hlen [All]: all
ID, mit der begonnen werden soll [0]: 0
Anzahl der Elemente, die pro Durchgang verarbeitet werden sollen [10000]: 10000

s15285294:/srv/www/vhosts/domain/httpdocs #
thats all
Reply With Quote
  #8  
Old 04-10-2010, 11:12 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are commenting out the first two lines you should get at least one warning (unless your CLI php is configured to not display erors which would be a pretty unusal setup)
Reply With Quote
  #9  
Old 04-11-2010, 12:41 PM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andreas,
i got a New error.
I put error Reporting on and now i become follow output.
Quote:
PHP Notice: Use of undefined constant DIR - assumed 'DIR' in /srv/www/vhosts/domain/httpdocs/includes/class_core.php on line 4493

Notice: Use of undefined constant DIR - assumed 'DIR' in /srv/www/vhosts/domain/httpdocs/includes/class_core.php on line 4493
PHP Notice: Use of undefined constant DIR - assumed 'DIR' in /srv/www/vhosts/domain/httpdocs/includes/class_core.php on line 4494

Notice: Use of undefined constant DIR - assumed 'DIR' in /srv/www/vhosts/domain/httpdocs/includes/class_core.php on line 4494
<br /><strong>Warnung</strong>: parse_url(http:///searchindex.php): Unable to parse URL in <strong>/srv/www/vhosts/domain/httpdocs/includes/class_core.php</strong> (Zeile <strong>2017</strong>)<br />Suchindex neu erstellen
I think ther error is at the http:///
Reply With Quote
  #10  
Old 04-11-2010, 02:02 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At least there are some notices now

Did you set the path correctly?
Reply With Quote
Reply

Thread Tools

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 08:54 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.04418 seconds
  • Memory Usage 2,311KB
  • Queries Executed 24 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete