[!!!][TASK] Remove words and words_strings from ReferenceIndex 49/35349/2
authorStephan Großberndt <stephan@grossberndt.de>
Thu, 11 Dec 2014 15:13:14 +0000 (16:13 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 12 Dec 2014 14:18:02 +0000 (15:18 +0100)
In ReferenceIndex->generateRefIndexData the strings from all input and
text fields were collected in $this->word_strings. But the array was
never accessed.

While both properties were removed in master, the 6.2 backport keeps
the properties, but does not fill word_strings anymore, so the patch
is less breaking but the performance improvement is still given.

Resolves: #63780
Releases: master, 6.2
Change-Id: I56d6a3e615cab44cbecff5a7d4dec42a1da29fc6
Reviewed-on: http://review.typo3.org/35349
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
Tested-by: Stephan Großberndt <stephan@grossberndt.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Database/ReferenceIndex.php

index 7700a65..7365a5a 100644 (file)
@@ -213,12 +213,6 @@ class ReferenceIndex {
                                                $this->createEntryData_softreferences($table, $uid, $fieldname, '', $deleted, $dat['softrefs']['keys']);
                                        }
                                }
-                               // Word indexing:
-                               foreach ($GLOBALS['TCA'][$table]['columns'] as $field => $conf) {
-                                       if (GeneralUtility::inList('input,text', $conf['config']['type']) && (string)$record[$field] !== '' && !\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($record[$field])) {
-                                               $this->words_strings[$field] = $record[$field];
-                                       }
-                               }
                                return $this->relations;
                        }
                }