Skip to content

Pluggable web search component using crawler + database full text search. Inspired by Sphider.

License

Notifications You must be signed in to change notification settings

elpadi/simple-web-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-web-search

About

Pluggable web search component using crawler + database full text search. Inspired by Sphider.

Usage

  1. Create your .env settings file.
  2. Create your website classes, follow Sites\RootBasics as en example.
  3. Make a request to index.php to generate the full text index.
  4. Make a request to query.php to fetch the search results.

HTTP Auth

Add the following block to index.php:

use GuzzleHttp\RequestOptions;
$clientConfig = [];
if (getenv('CLIENT_USERNAME') && getenv('CLIENT_PASSWORD')) {
	$clientConfig[RequestOptions::AUTH] = [getenv('CLIENT_USERNAME'), getenv('CLIENT_PASSWORD')];
}

Pass the $clientConfig variable to the Spatie crawler constructor.

About

Pluggable web search component using crawler + database full text search. Inspired by Sphider.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages