mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 09:42:41 +01:00
20aad35e60
Summary: Ref T12819. Move these out of the core engine into the Ferret engine. In the future different applications can define different functions, like "summary:..." or whatever. This may get more formalization when I possibly do "author:" and such some time down the road. Test Plan: Searched for "title:...". Searched for "dog:...", got a useful error. Reviewers: chad Reviewed By: chad Maniphest Tasks: T12819 Differential Revision: https://secure.phabricator.com/D18536
27 lines
535 B
PHP
27 lines
535 B
PHP
<?php
|
|
|
|
final class ManiphestTaskFerretEngine
|
|
extends PhabricatorFerretEngine {
|
|
|
|
public function newNgramsObject() {
|
|
return new ManiphestTaskFerretNgrams();
|
|
}
|
|
|
|
public function newDocumentObject() {
|
|
return new ManiphestTaskFerretDocument();
|
|
}
|
|
|
|
public function newFieldObject() {
|
|
return new ManiphestTaskFerretField();
|
|
}
|
|
|
|
protected function getFunctionMap() {
|
|
$map = parent::getFunctionMap();
|
|
|
|
$map['body']['aliases'][] = 'desc';
|
|
$map['body']['aliases'][] = 'description';
|
|
|
|
return $map;
|
|
}
|
|
|
|
}
|