NAME

Circa - a Search Engine/Indexer running with Mysql

DESCRIPTION

This is Circa::Search, a module who provide functions to perform search on Circa, a www search engine running with Mysql. Circa is for your Web site, or for a list of sites. It indexes like Altavista does. It can read, add and parse all url's found in a page. It add url and word to MySQL for use it at search.

Circa can be used for index 100 to 100 000 url

Notes:

  • Accents are removed on search and when indexed

  • Search are case unsensitive (mmmh what my english ? ;-)

Circa::Search work with Circa::Indexer result. Circa::Search is a Perl interface, but it's exist on this package a PHP client too.

SYNOPSIS

See Circa::Search, Circa::Indexer

SEE ALSO

Circa::Indexer : Indexer module

Circa::Search : Searcher module

Circa::Url : Manage url of Circa

Circa::Categorie : Manage categorie of Circa

Circa::Parser : Manage Parser of Circa

Public interface

You use this method behind Circa::Indexer and Circa::Search object

connect($user,$password,$db)

Connect Circa to MySQL. Return 1 on succes, 0 else

  • $user : Utilisateur MySQL

  • $password : Mot de passe MySQL

  • $db : Database MySQL

  • $server : Adr IP du serveur MySQL

Connect Circa to MySQL. Return 1 on succes, 0 else

close

Close connection to MySQL

pre_tbl

Get or set the prefix for table name for use Circa with more than one time on a same database

fill_template($masque,$vars)
$masque : Path of template
$vars : hash ref with keys/val to substitue

Give template with remplaced variables Ex: if $$vars{age}=12, and $masque have

J'ai <? $age ?> ans,

this function give:

J'ai 12 ans,

AUTHOR

Alain BARBET alian@alianwebserver.com