Forum

JiFile for Joomla!

JIFile
JiFile is a component for Joomla! that allows you to index file contents (PDF, DOC, etc..) to perform searches in them.

Learn more...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile is a component for Joomla! that allows you to share the photos from your Android device to your site Joomla.

Learn more...  Demo

iFile Framework

IFile
IFile is an open source framework written entirely in PHP, allows the indexing of textual content of a document (DOC, PDF, EXCEL, etc.) and a quick search within them.

Learn more...  Demo

Easy Language

EasyLanguage
Easy Language is a plugin for easy and immediate management of multilingual texts in every possible area of joomla, articles, components, modules, metadata, template, other components(example K2) etc.

Learn more...

Article Book Effect

Article Book Effect
View Joomla articles with the effect turns the page of a book. This plugin will display the contents of an article in Joomla as a real book or magazine, using all the benefits of HTML5

Learn more...  Demo

 

Passport photo

Passport photo
The most popular Android app that allows you to print photos cards for your documents with your Android smartphone, in a simple and intuitive way.

Learn more...

 

Crazy Shadow

Crazy Shadow
Crazy Shadow is the 3D fast-paced and fun puzzle Android game! Try to rotate and drag shapes in the position of their shadows without fail! Solve in succession all combinations of levels of the game.

Learn more...

 

Admin Countdown

Admin Countdown
Module for Joomla! 2.5 and 3.x displays in the administration part of the site, a timer with countdown of the time remaining in your session.

Learn more...  Demo

 
Welcome, Guest
Username: Password: Remember me

TOPIC: Come gestire una indicizzazione automatica?

Come gestire una indicizzazione automatica? 30 Dec 2011 13:12 #41

  • trullox
  • trullox's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
ciao,
che strategia usate per effettuare una indicizzazione automatica?
Personalmente ho creato uno script php richiamabile da linea di comando e tramite i cron di linux prevedo di farlo girare durante la notte.
Altre idee o soluzioni diverse?

grazie
Andrea
The administrator has disabled public write access.

Re: Come gestire una indicizzazione automatica? 30 Dec 2011 17:01 #43

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Ciao,
se hai una mole molto grande di file, devi tener conto che il processo di indicizzazione potrebbe impiegare molto tempo.

A noi è capitato di indicizzare circa 32000 documenti di media dimensione, e abbiamo realizzando uno script PHP richiamato da shell su di un sistema linux di buone prestazioni. Il processo ci ha impiegato circa 2 giorni, quindi è importante valutare il tempo che potrebbe essere necessario per indicizzare tuoi i file per settare il CRON.

Altra cosa, non ho idea del tuo dominio applicativo, ma dopo aver fatto la prima indicizzazione (che di solito è molto dispendiosa dato che si dovrà indicizzare molti file) le successive dovranno indicizzare solo i nuovi file (che si solito non sono tantissimi), quindi i tempi dovrebbero essere molto più brevi.

Ti consiglio di crearti un log degli errori per poter capire quale potrebbe essere stato il problema della mancata indicizzazione di un file.
// scrittura errore su file
$log = 'C:\xampp\htdocs\ifile\logs\logs_index_'.date("Ymd").'.log';
$strLog = "KO - (".$file."): ".$e->getMessage()."\n";
error_log($strLog, 3, $log);
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
The administrator has disabled public write access.

Re: Come gestire una indicizzazione automatica? 02 Jan 2012 11:04 #45

  • trullox
  • trullox's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Ciao,
si, ho notato i tempi di indicizzazione ed è stato necessario impostare la configurazione per evitare l'indicizzazione dei file già presenti nell'indice.

Grazie per il consiglio sul log, avevo già provveduto a salvare l'output e gli error su due file separati tramite shell linux.
php /var/www/html/ifile/indicizza.php > /var/www/html/ifile/log.txt 2> /var/www/html/ifile/log_ERROR.txt

Questo comando l'ho inserito nel cron del server.

Andrea
The administrator has disabled public write access.

Come gestire una indicizzazione automatica? 27 Nov 2013 11:52 #1568

Hy,
I want to do an automatic indexation with iFile, and I think your script can help me. Can you post your script?
Thank in advance
The administrator has disabled public write access.

Come gestire una indicizzazione automatica? 27 Nov 2013 12:05 #1570

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
The administrator has disabled public write access.
The following user(s) said Thank You: Jeanne Bazin