PHP code example of tyrann0us / improvesearch

1. Go to this page and download the library: Download tyrann0us/improvesearch library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tyrann0us / improvesearch example snippets


wfLoadExtension( 'ImproveSearch' );

$wgImproveSearchKeepTemplateParams = [ 'Address' => [ 'street', 'number' ] ];
bash
php maintenance/run.php rebuildtextindex
bash
# must return 0
php maintenance/run.php sql --query 'SELECT SUM(si_text LIKE "%.jpg%") FROM searchindex'