Issue Bug Closed

#76142Indexed Search - $this->conf['index_descrLgd'] seems to be null/not set

Andreas Fragner 05/11/16, 12:13 updated 02/27/20, 16:51

Description

I wanted to XCLASS the following class to make the item description a little bit longer:
\TYPO3\CMS\IndexedSearch\Indexer::class

I adpated the functions backend_initIndexer and bodyDescription to fit my needs.

I set:

$this->conf['index_descrLgd'] = 500;

and:

$maxL = MathUtility::forceIntegerInRange($this->conf['index_descrLgd'], 0, 500, 200);

But nothing happened – still only 200 characters in database. I also changed the according template settings to store more than 200 characters and to show more than 200 characters in the FE output of the search results.

At last I changed these values also in the source code of indexed_search system extension to exclude possible mistakes I could have made in XCLASS – but also only 200 characters where stored in the database. But if I change the default value for

MathUtility::forceIntegerInRange

Expected: Correct value of index_descrLgd available in function bodyDescription.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.