Differential D18513 Diff 44467 src/infrastructure/customfield/engineextension/PhabricatorCustomFieldFulltextEngineExtension.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/engineextension/PhabricatorCustomFieldFulltextEngineExtension.php
| <?php | <?php | ||||
| final class PhabricatorCustomFieldFulltextEngineExtension | final class PhabricatorCustomFieldFulltextEngineExtension | ||||
| extends PhabricatorFulltextEngineExtension { | extends PhabricatorFulltextEngineExtension { | ||||
| const EXTENSIONKEY = 'customfield.fields'; | const EXTENSIONKEY = 'customfield.fields'; | ||||
| public function getExtensionName() { | public function getExtensionName() { | ||||
| return pht('Custom Fields'); | return pht('Custom Fields'); | ||||
| } | } | ||||
| public function shouldIndexFulltextObject($object) { | public function shouldEnrichFulltextObject($object) { | ||||
| return ($object instanceof PhabricatorCustomFieldInterface); | return ($object instanceof PhabricatorCustomFieldInterface); | ||||
| } | } | ||||
| public function indexFulltextObject( | public function enrichFulltextObject( | ||||
| $object, | $object, | ||||
| PhabricatorSearchAbstractDocument $document) { | PhabricatorSearchAbstractDocument $document) { | ||||
| // Rebuild the ApplicationSearch indexes. These are internal and not part | // Rebuild the ApplicationSearch indexes. These are internal and not part | ||||
| // of the fulltext search, but putting them in this workflow allows users | // of the fulltext search, but putting them in this workflow allows users | ||||
| // to use the same tools to rebuild the indexes, which is easy to | // to use the same tools to rebuild the indexes, which is easy to | ||||
| // understand. | // understand. | ||||
| Show All 15 Lines | |||||