Beispiel #1
0
ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('spellchecking', 'ApacheSolrForTypo3\\Solr\\Search\\SpellcheckingComponent');
ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('faceting', 'ApacheSolrForTypo3\\Solr\\Search\\FacetingComponent');
ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('statistics', 'ApacheSolrForTypo3\\Solr\\Search\\StatisticsComponent');
ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('lastSearches', 'ApacheSolrForTypo3\\Solr\\Search\\LastSearchesComponent');
ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('elevation', 'ApacheSolrForTypo3\\Solr\\Search\\ElevationComponent');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// register plugin commands
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results, frequentsearches', 'frequentSearches', 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\FrequentSearchesCommand', ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_NONE);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('search, results', 'form', 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\FormCommand', ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_NONE);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'resultsPerPageSwitch', 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\ResultsPerPageSwitchCommand', ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_HAS_SEARCHED + ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_HAS_RESULTS);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('search, results', 'errors', 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\ErrorsCommand', ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_NONE);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'lastSearches', 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\LastSearchesCommand', ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_NONE);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'no_results', 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\NoResultsCommand', ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_HAS_SEARCHED + ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_NO_RESULTS);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'faceting', 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\FacetingCommand', ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_HAS_SEARCHED + ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_HAS_RESULTS + ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_NO_RESULTS);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'results', 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\ResultsCommand', ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_HAS_SEARCHED + ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_HAS_RESULTS);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'sorting', 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\SortingCommand', ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_HAS_SEARCHED + ApacheSolrForTypo3\Solr\Plugin\PluginCommand::REQUIREMENT_HAS_RESULTS);
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// registering facet types
ApacheSolrForTypo3\Solr\Facet\FacetRendererFactory::registerFacetType('numericRange', 'ApacheSolrForTypo3\\Solr\\Facet\\NumericRangeFacetRenderer', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\Range', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\Range');
ApacheSolrForTypo3\Solr\Facet\FacetRendererFactory::registerFacetType('dateRange', 'ApacheSolrForTypo3\\Solr\\Facet\\DateRangeFacetRenderer', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\DateRange', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\DateRange');
ApacheSolrForTypo3\Solr\Facet\FacetRendererFactory::registerFacetType('hierarchy', 'ApacheSolrForTypo3\\Solr\\Facet\\HierarchicalFacetRenderer', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\Hierarchy');
ApacheSolrForTypo3\Solr\Facet\FacetRendererFactory::registerFacetType('queryGroup', 'ApacheSolrForTypo3\\Solr\\Facet\\QueryGroupFacetRenderer', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\QueryGroup', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\QueryGroup');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// adding scheduler tasks
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['ApacheSolrForTypo3\\Solr\\Task\\ReIndexTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:solr/Resources/Private/Language/locallang.xlf:reindex_title', 'description' => 'LLL:EXT:solr/Resources/Private/Language/locallang.xlf:reindex_description', 'additionalFields' => 'ApacheSolrForTypo3\\Solr\\Task\\ReIndexTaskAdditionalFieldProvider');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['ApacheSolrForTypo3\\Solr\\Task\\IndexQueueWorkerTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:solr/Resources/Private/Language/locallang.xlf:indexqueueworker_title', 'description' => 'LLL:EXT:solr/Resources/Private/Language/locallang.xlf:indexqueueworker_description', 'additionalFields' => 'ApacheSolrForTypo3\\Solr\\Task\\IndexQueueWorkerTaskAdditionalFieldProvider');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// TODO move into pi_results, initializeSearch, add only when features are activated
$TYPO3_CONF_VARS['EXTCONF']['solr']['modifySearchForm']['keepParameters'] = 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\ParameterKeepingFormModifier';
$TYPO3_CONF_VARS['EXTCONF']['solr']['modifySearchForm']['spellcheck'] = 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\SpellCheckFormModifier';
$TYPO3_CONF_VARS['EXTCONF']['solr']['modifySearchForm']['suggest'] = 'ApacheSolrForTypo3\\Solr\\Plugin\\Results\\SuggestFormModifier';
Beispiel #2
0
ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('spellchecking', 'ApacheSolrForTypo3\\Solr\\Search\\SpellcheckingComponent');
ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('faceting', 'ApacheSolrForTypo3\\Solr\\Search\\FacetingComponent');
ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('statistics', 'ApacheSolrForTypo3\\Solr\\Search\\StatisticsComponent');
ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('lastSearches', 'ApacheSolrForTypo3\\Solr\\Search\\LastSearchesComponent');
ApacheSolrForTypo3\Solr\Search\SearchComponentManager::registerSearchComponent('elevation', 'ApacheSolrForTypo3\\Solr\\Search\\ElevationComponent');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// register plugin commands
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results, frequentsearches', 'frequentSearches', 'Tx_Solr_PiResults_FrequentSearchesCommand', Tx_Solr_PluginCommand::REQUIREMENT_NONE);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('search, results', 'form', 'Tx_Solr_PiResults_FormCommand', Tx_Solr_PluginCommand::REQUIREMENT_NONE);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'resultsPerPageSwitch', 'Tx_Solr_PiResults_ResultsPerPageSwitchCommand', Tx_Solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + Tx_Solr_PluginCommand::REQUIREMENT_HAS_RESULTS);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('search, results', 'errors', 'Tx_Solr_PiResults_ErrorsCommand', Tx_Solr_PluginCommand::REQUIREMENT_NONE);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'lastSearches', 'Tx_Solr_PiResults_LastSearchesCommand', Tx_Solr_PluginCommand::REQUIREMENT_NONE);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'no_results', 'Tx_Solr_PiResults_NoResultsCommand', Tx_Solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + Tx_Solr_PluginCommand::REQUIREMENT_NO_RESULTS);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'faceting', 'Tx_Solr_PiResults_FacetingCommand', Tx_Solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + Tx_Solr_PluginCommand::REQUIREMENT_HAS_RESULTS + Tx_Solr_PluginCommand::REQUIREMENT_NO_RESULTS);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'results', 'Tx_Solr_PiResults_ResultsCommand', Tx_Solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + Tx_Solr_PluginCommand::REQUIREMENT_HAS_RESULTS);
ApacheSolrForTypo3\Solr\CommandResolver::registerPluginCommand('results', 'sorting', 'Tx_Solr_PiResults_SortingCommand', Tx_Solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + Tx_Solr_PluginCommand::REQUIREMENT_HAS_RESULTS);
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// registering facet types
Tx_Solr_Facet_FacetRendererFactory::registerFacetType('numericRange', 'Tx_Solr_Facet_NumericRangeFacetRenderer', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\Range', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\Range');
Tx_Solr_Facet_FacetRendererFactory::registerFacetType('dateRange', 'Tx_Solr_Facet_DateRangeFacetRenderer', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\DateRange', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\DateRange');
Tx_Solr_Facet_FacetRendererFactory::registerFacetType('hierarchy', 'Tx_Solr_Facet_HierarchicalFacetRenderer', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\Hierarchy');
Tx_Solr_Facet_FacetRendererFactory::registerFacetType('queryGroup', 'Tx_Solr_Facet_QueryGroupFacetRenderer', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\QueryGroup', 'ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\QueryGroup');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// adding scheduler tasks
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_Solr_Scheduler_ReIndexTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:solr/Resources/Private/Language/ModuleScheduler.xml:reindex_title', 'description' => 'LLL:EXT:solr/Resources/Private/Language/ModuleScheduler.xml:reindex_description', 'additionalFields' => 'Tx_Solr_Scheduler_ReIndexTaskAdditionalFieldProvider');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_Solr_Scheduler_IndexQueueWorkerTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:solr/Resources/Private/Language/ModuleScheduler.xml:indexqueueworker_title', 'description' => 'LLL:EXT:solr/Resources/Private/Language/ModuleScheduler.xml:indexqueueworker_description', 'additionalFields' => 'Tx_Solr_Scheduler_IndexQueueWorkerTaskAdditionalFieldProvider');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// TODO move into pi_results, initializeSearch, add only when features are activated
$TYPO3_CONF_VARS['EXTCONF']['solr']['modifySearchForm']['keepParameters'] = 'Tx_Solr_PiResults_ParameterKeepingFormModifier';
$TYPO3_CONF_VARS['EXTCONF']['solr']['modifySearchForm']['spellcheck'] = 'Tx_Solr_PiResults_SpellCheckFormModifier';
$TYPO3_CONF_VARS['EXTCONF']['solr']['modifySearchForm']['suggest'] = 'Tx_Solr_PiResults_SuggestFormModifier';