Help using create_search_index script

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
Ciao121
Registered User
Posts: 239
Joined: Wed Jan 28, 2004 1:08 pm

Help using create_search_index script

Post by Ciao121 » Fri Feb 20, 2015 4:16 am

Hi,
I've found this script:
https://github.com/phpbb/phpbb/blob/dev ... _index.php
It seems to me a cli tool to rebuild the phpBB search index; but I don't understand what it expect as arguments.

Anynbody knows?
Thanks
Last edited by Mick on Fri Feb 20, 2015 2:29 pm, edited 1 time in total.
Reason: Solved
Apri il tuo forum gratuito in 1 minuto.

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Help using create_search_index script

Post by Oyabun1 » Fri Feb 20, 2015 5:36 am

It seems that arg 1 is the file name, and arg 2 is optional and is the batch size.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

Ciao121
Registered User
Posts: 239
Joined: Wed Jan 28, 2004 1:08 pm

Re: Help using create_search_index script

Post by Ciao121 » Fri Feb 20, 2015 11:51 am

Thanks for your reply.
The file name of what? arg1 it should be to specyfy index_type. But how. I tried fulltext, fulltext_native.. but no luck.
Apri il tuo forum gratuito in 1 minuto.

Ciao121
Registered User
Posts: 239
Joined: Wed Jan 28, 2004 1:08 pm

Re: Help using create_search_index script

Post by Ciao121 » Fri Feb 20, 2015 12:16 pm

I Found that "php create_search_index.php "phpbb\search\fulltext_native"" does something.
But db tables are not populated.
On video I see errors like:

Code: Select all

<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/phpbb/search/fulltext_native.php</b> on line <b>100</b>: <b>Missing argument 2 for phpbb/search/fulltext_native::__construct(), called in [ROOT]/develop/create_search_index.php on line 33 and defined</b><br />
Apri il tuo forum gratuito in 1 minuto.

Ciao121
Registered User
Posts: 239
Joined: Wed Jan 28, 2004 1:08 pm

Re: Help using create_search_index script

Post by Ciao121 » Fri Feb 20, 2015 12:47 pm

Finally got it working:
Changed

Code: Select all

$search = new $class_name($search_errors);
To

Code: Select all

$search = new $class_name($search_errors, $phpbb_root_path, $phpEx, $auth, $config, $db, $user);
in the script
Apri il tuo forum gratuito in 1 minuto.

Locked

Return to “[3.1.x] Support Forum”