Welcome,
Guest
|
|
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;
}
} |
Last Edit: 10 Feb 2012 17:53 by Zachary.
The administrator has disabled public write access.
The following user(s) said Thank You: 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
The administrator has disabled public write access.
|
|
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?
|
The administrator has disabled public write access.
|
|
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). This image is hidden for guests. Please log in or register to see it. |
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.
|
|
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.
Attachments:
|
The administrator has disabled public write access.
|
If you not change browser settings, you agree to it. Learn more