![]() |
Build Search-Index from Commandline
1 Attachment(s)
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 :) |
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? |
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 |
That is a standard vBulletin file.
If it is not there your installation is either broken - or you did not adjust the path. |
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. |
Strange :)
You can try to comment out the first two lines (error_reporting, ini_set) and see what happens |
Hi Andreas
Quote:
|
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)
|
Hi Andreas,
i got a New error. I put error Reporting on and now i become follow output. Quote:
|
At least there are some notices now ;)
Did you set the path correctly? |
Hi Andreas,
yes the Path is set correctly /srv/www/vhosts/domain/httpdocs i think it´s the relativ path |
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
|
Could u give more explaintation? What is it, what is it doing?? Sry but i dont get it in anyway.
|
screenshot please,but thanks anyway :)
|
@sKippah, spoky29
No screenshots, no explanation - sorry. If you do not know what this script is being used for you do not need it anyway. |
Hello Andreas, can better explain what this script do?
Thank you. |
@Manoel J?nior
This post contains the answer to your question: https://vborg.vbsupport.ru/showpost....1&postcount=15 |
@Andreas
Thank you for your education! As always AN EXAMPLE. --: Code:
#!/usr/local/bin/php -q Please enter the path to your vBulletin directory: |
Another little update: It does show "X % complete" now for each loop and should also fix the warning (thanks for the bug report).
|
Thanks! This is just what I needed after an upgrade to vBulletin 4.
|
Thanks for the script... you did a great work..
Just rebuilding.. 1,8 million posts.. IDs 0-10000 ... Erledigt (269,63 sec - 0,45%) IDs 10000-20000 ... Erledigt (204,11 sec - 0,89%) IDs 20000-30000 ... Erledigt (200,77 sec - 1,34%) IDs 30000-40000 ... Erledigt (230,40 sec - 1,78%) IDs 40000-50000 ... |
Andreas,
How do you use this script? My Search Index has to be rebuilt: the ACP won't do it. |
Will this script work on 4.1.0? our forum has over 4 million entry's, i tried this on our development server and after it ran i got this error when searching.
PHP Code:
|
All times are GMT. The time now is 06:36 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|