mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +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:
@@ -57,6 +57,10 @@ class StringFieldMapping extends ComplexFieldMapping
|
||||
$child->setAnalyzer('general_light');
|
||||
$this->addChild($child);
|
||||
|
||||
$child = new StringFieldMapping('sort');
|
||||
$child->setAnalyzer('sort'); // custom = lowercase(keyword)
|
||||
$this->addChild($child);
|
||||
|
||||
$child = new StringFieldMapping('truncated');
|
||||
$child->setAnalyzer('truncation_analyzer', 'indexing');
|
||||
$child->setAnalyzer('truncation_analyzer#search', 'searching');
|
||||
|
Reference in New Issue
Block a user