Search::Circa::Url - provide functions to manage url of Circa
$Revision: 1.19 $
use Search::Circa::Indexer; my $index = new Search::Circa::Indexer; $index->connect(...); $index->URL->add($account,%url) || print "Can't add $url{url} : $DBI::errstr\n"; $index->URL->del($account,$id_url);
This module is used by Search::Circa::Indexer module to manage Url of Circa
Sometimes I use a hash call url as parameter. (update,add,load method). Here are possible field:
Id of url (use only on update)
Url use to get content if local_url isn't define
Url with file:// protocol. In search, url will be displayed, else in indexer, url_local is used.
0 ou 1. (Apparait ou pas dans la navigation par categorie). Si non present, 0.
Profondeur de l'indexation pour ce document. Si non present, positionné à 0.
Categorie de cet url. Si non present, positionné à 0.
Title of document
Description of document
Langue of document
Last check of Indexer
Last update of document
Is document reachable ?
Does Circa already known this url ?
Create a new Circa::Url object with indexer instance properties
Add url %url for account $idMan. If error (account undefined, no account, no url) return 0. You can ask $DBI::errstr to know why) or 1 if ok.
Return reference to hash %url for id $id, account $compte. If error (id undefined, no id, no account) return 0. You can ask $DBI::errstr to know why) or 1 if ok.
Update url %url for account $compte. If error (id undefined, no id, no account) return 0. You can ask $DBI::errstr to know why) or 1 if ok. Field url can't be updated.
Delete url with id $id_url on account $compte (clean table links/releation) If error (id undefined, no id, no account) return 0. You can ask $DBI::errstr to know why)
Delete all non valid url found for account $id
Return reference of hash with id/url for url not parsed since $xj days
Return reference of hash with id/url for url never parser (column parser=0)
Return reference of hash with id/url of url not valid
Valid all non valid url found for account $id
Commit link $id_url on table $compte/links
Valide le lien $id_url
Set url $id_url as non valide. Ignore link $id_url on search (bad link).
Alain BARBET alian@alianwebserver.com
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'positionné'. Assuming CP1252
To install Search::Circa, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Search::Circa
CPAN shell
perl -MCPAN -e shell install Search::Circa
For more information on module installation, please visit the detailed CPAN module installation guide.