mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-07 23:54:56 +00:00
set separator between categories to '#'
This commit is contained in:
parent
48eebee92a
commit
fa683ba65f
|
@ -169,7 +169,7 @@ class SeedDMS_SQLiteFTS_IndexedDocument extends SeedDMS_SQLiteFTS_Document {
|
|||
foreach($categories as $cat) {
|
||||
$names[] = $cat->getName();
|
||||
}
|
||||
$this->addField(SeedDMS_SQLiteFTS_Field::Text('category', implode(' ', $names)));
|
||||
$this->addField(SeedDMS_SQLiteFTS_Field::Text('category', implode('#', $names)));
|
||||
}
|
||||
if($keywords = $document->getKeywords()) {
|
||||
$this->addField(SeedDMS_SQLiteFTS_Field::Text('keywords', $keywords));
|
||||
|
|
|
@ -238,7 +238,7 @@ class SeedDMS_SQLiteFTS_Indexer {
|
|||
foreach($res as $row) {
|
||||
if($row[$facetname] && $row['c']) {
|
||||
if($facetname == 'category') {
|
||||
$tmp = explode(' ', $row[$facetname]);
|
||||
$tmp = explode('#', $row[$facetname]);
|
||||
if(count($tmp) > 1) {
|
||||
foreach($tmp as $t) {
|
||||
if(!isset($facets[$facetname][$t]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user