Benvenuto,
Ospite
|
|
Thought I'd post back a quick change I made in the local version.
After removing a file from being indexed it seemed that it was always necessary to optimize. I modified the delete function to call the optimize function before ending to remove 1 extra click. File is located under the model directory and is called lucene.php public function delete($id) {
if($id !== false) {
$lucene = $this->getIndex();
$lucene->delete($id);
$lucene->commit();
$doc = $lucene->getDocument($id);
jifilehelper::deleteFileCache($doc->getFieldValue('filename'));
jifilehelper::clearCache(array('lucene'));
$this->optimize();
} else {
return false;
}
} |
Ultima modifica: 10/02/2012 17:53 da Zachary.
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
I seguenti utenti ringraziano:: Antonio
|
|
This is a good idea, but "optimize" method is very slow if you have a big number of document in index.
So we've decided not to call the "optimize" method, after each deletion of a single document. |
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
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
What happens if you don't optimize? Does the search get slower, take more processing or such? Do you know if this is more processing than optimizing a large grouping of files?
|
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Hi,
if you do not optimize your index, the search is slower. In the control panel JiFile, there is a control to optimize or not optimize your index (see picture). Questa immagine è nascosta ai visitatori. Prego accedi o registrati per visualizzarli. |
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
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Hello, following the thread of this conversation, I have a problem with the optimization option. When I click on this function to update the indexes erased does nothing, any idea of what can be happened? Please any help?
Attached images to better understand what happens to me.
Allegati:
|
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
Facendo click su qualunque link della pagina si accetta il loro utilizzo. Per saperne di piu'