mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	add new key 'attrcallback' to configuration of fulltext engine
This commit is contained in:
		
							parent
							
								
									44d043ef21
								
							
						
					
					
						commit
						a7b00ae22a
					
				|  | @ -1,5 +1,11 @@ | ||||||
| <?php | <?php | ||||||
| 
 | 
 | ||||||
|  | function getAttributesCallback($dms) { | ||||||
|  | 	return function () use ($dms) { | ||||||
|  | 		return $dms->getAllAttributeDefinitions(); | ||||||
|  | 	}; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| $fulltextservice = null; | $fulltextservice = null; | ||||||
| if($settings->_enableFullSearch) { | if($settings->_enableFullSearch) { | ||||||
| 	require_once("inc.ClassFulltextService.php"); | 	require_once("inc.ClassFulltextService.php"); | ||||||
|  | @ -10,7 +16,10 @@ if($settings->_enableFullSearch) { | ||||||
| 			'Indexer' => 'SeedDMS_SQLiteFTS_Indexer', | 			'Indexer' => 'SeedDMS_SQLiteFTS_Indexer', | ||||||
| 			'Search' => 'SeedDMS_SQLiteFTS_Search', | 			'Search' => 'SeedDMS_SQLiteFTS_Search', | ||||||
| 			'IndexedDocument' => 'SeedDMS_SQLiteFTS_IndexedDocument', | 			'IndexedDocument' => 'SeedDMS_SQLiteFTS_IndexedDocument', | ||||||
| 			'Conf' => array('indexdir' => $settings->_luceneDir) | 			'Conf' => array( | ||||||
|  | 				'indexdir' => $settings->_luceneDir, | ||||||
|  | 				'attrcallback' => getAttributesCallback($dms) | ||||||
|  | 			) | ||||||
| 		); | 		); | ||||||
| 		$fulltextservice->addService('sqlitefts', $indexconf); | 		$fulltextservice->addService('sqlitefts', $indexconf); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann