[!!!][TASK] Indexed Search: Remove class aliases
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
5 'indexed_search',
6 'setup',
7 trim('
8 plugin.tx_indexedsearch = USER_INT
9 plugin.tx_indexedsearch.userFunc = ' . \TYPO3\CMS\IndexedSearch\Controller\SearchFormController::class . '->main
10 ')
11 );
12
13 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
14 'indexed_search',
15 'setup',
16 'tt_content.list.20.indexed_search =< plugin.tx_indexedsearch',
17 'defaultContentRendering'
18 );
19
20 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.CMS.indexed_search', 'Pi2', array('Search' => 'form,search'), array('Search' => 'form,search'));
21 // Attach to hooks:
22 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'][] = \TYPO3\CMS\IndexedSearch\Indexer::class;
23 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['headerNoCache']['tx_indexedsearch'] = \TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook::class . '->headerNoCache';
24 // Register with "crawler" extension:
25 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['procInstructions']['tx_indexedsearch_reindex'] = 'Re-indexing';
26 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['cli_hooks']['tx_indexedsearch_crawl'] = \TYPO3\CMS\IndexedSearch\Hook\CrawlerHook::class;
27 // Register with TCEmain:
28 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_indexedsearch'] = \TYPO3\CMS\IndexedSearch\Hook\CrawlerHook::class;
29 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_indexedsearch'] = \TYPO3\CMS\IndexedSearch\Hook\CrawlerHook::class;
30 // Configure default document parsers:
31 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['external_parsers'] = array(
32 'pdf' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
33 'doc' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
34 'pps' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
35 'ppt' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
36 'xls' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
37 'sxc' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
38 'sxi' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
39 'sxw' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
40 'ods' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
41 'odp' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
42 'odt' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
43 'rtf' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
44 'txt' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
45 'html' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
46 'htm' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
47 'csv' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
48 'xml' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
49 'jpg' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
50 'jpeg' => \TYPO3\CMS\IndexedSearch\FileContentParser::class,
51 'tif' => \TYPO3\CMS\IndexedSearch\FileContentParser::class
52 );
53 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['use_tables'] = 'index_phash,index_fulltext,index_rel,index_words,index_section,index_grlist,index_stat_search,index_stat_word,index_debug,index_config';
54 // unserializing the configuration so we can use it here:
55 $_EXTCONF = unserialize($_EXTCONF);
56 // Use the advanced doubleMetaphone parser instead of the internal one (usage of metaphone parsers is generally disabled by default)
57 if (isset($_EXTCONF['enableMetaphoneSearch']) && (int)$_EXTCONF['enableMetaphoneSearch'] == 2) {
58 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['metaphone'] = \TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::class;
59 }