mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-3583
define a custom "sort" analyzer (whole value, lowercase, no diacritics) fix sort by type (string/date/number) fix sort on business fields (use "private_caption.field") sort string fields on ".sort" sub-value (in place of ".raw") add option for docker/es to activate scripting on search (disabled for now)
This commit is contained in:
@@ -27,9 +27,10 @@ class FieldToFieldMappingConverter
|
||||
$ret->disableIndexing();
|
||||
}
|
||||
else {
|
||||
$ret->addChild(
|
||||
(new StringFieldMapping('raw'))
|
||||
->enableRawIndexing());
|
||||
// no more need "raw" for sorting (sort arg depends on type)
|
||||
// $ret->addChild(
|
||||
// (new StringFieldMapping('raw'))
|
||||
// ->enableRawIndexing());
|
||||
$ret->addChild(
|
||||
(new StringFieldMapping('light'))
|
||||
->setAnalyzer('general_light')
|
||||
@@ -58,9 +59,10 @@ class FieldToFieldMappingConverter
|
||||
$ret->disableIndexing();
|
||||
}
|
||||
else {
|
||||
$ret->addChild(
|
||||
(new StringFieldMapping('raw'))
|
||||
->enableRawIndexing());
|
||||
// no more need "raw" for sorting (sort arg depends on type)
|
||||
// $ret->addChild(
|
||||
// (new StringFieldMapping('raw'))
|
||||
// ->enableRawIndexing());
|
||||
$ret->addChild(
|
||||
(new StringFieldMapping('light'))
|
||||
->setAnalyzer('general_light')
|
||||
|
Reference in New Issue
Block a user