mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +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
|
||||
|
||||
function getAttributesCallback($dms) {
|
||||
return function () use ($dms) {
|
||||
return $dms->getAllAttributeDefinitions();
|
||||
};
|
||||
}
|
||||
|
||||
$fulltextservice = null;
|
||||
if($settings->_enableFullSearch) {
|
||||
require_once("inc.ClassFulltextService.php");
|
||||
|
@ -10,7 +16,10 @@ if($settings->_enableFullSearch) {
|
|||
'Indexer' => 'SeedDMS_SQLiteFTS_Indexer',
|
||||
'Search' => 'SeedDMS_SQLiteFTS_Search',
|
||||
'IndexedDocument' => 'SeedDMS_SQLiteFTS_IndexedDocument',
|
||||
'Conf' => array('indexdir' => $settings->_luceneDir)
|
||||
'Conf' => array(
|
||||
'indexdir' => $settings->_luceneDir,
|
||||
'attrcallback' => getAttributesCallback($dms)
|
||||
)
|
||||
);
|
||||
$fulltextservice->addService('sqlitefts', $indexconf);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user