Feature #55355
closedCheck if file exists before outputing
0%
Description
Hello there,
it often happens in bigger systems, that folder structures and filenames change or are deleted on a regular basis. In both cases there is no way to communicate this properly to indexed search (since these changes might happen through the system directly without using TYPO3).
This leads to errornous results in the indexed search and is really frustrating for users and clients.
To avoid this, I figured that you could simply check if the file exists while creating the results array in class.tx_indexedsearch.php like this:
file: typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php
TYPO3 Version: 4.5.27
Begins: line 606
if($row['data_filename'] != '' && !file_exists(PATH_site . $row['data_filename'])) { $count--; continue; }
Updated by Markus Klein over 10 years ago
Hi Tizian!
Thanks for your report. Feel free to supply a patch to our review system.
For further instructions please refer to http://wiki.typo3.org/CWT
(Important: The patch has to be filed for current master)
Updated by Mathias Schreiber over 9 years ago
- Target version set to 7.5
I not sure how to deal with this one.
Checking these will pull down the sub-par performance of IS even more.
Updated by Benni Mack almost 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Tymoteusz Motylewski almost 9 years ago
- Priority changed from Should have to Won't have this time
Hi Tizian Schmidlin
Sorry, but it will not be changed.
We have to assume that data stored in index is valid.
If data changes we need to update index.
Updated by Tymoteusz Motylewski almost 9 years ago
- Status changed from New to Rejected