Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/ferret/PhabricatorFerretField.php
| <?php | <?php | ||||
| abstract class PhabricatorFerretField | abstract class PhabricatorFerretField | ||||
| extends PhabricatorSearchDAO { | extends PhabricatorSearchDAO { | ||||
| protected $documentID; | protected $documentID; | ||||
| protected $fieldKey; | protected $fieldKey; | ||||
| protected $rawCorpus; | protected $rawCorpus; | ||||
| protected $termCorpus; | |||||
| protected $normalCorpus; | protected $normalCorpus; | ||||
| abstract public function getIndexKey(); | abstract public function getIndexKey(); | ||||
| protected function getConfiguration() { | protected function getConfiguration() { | ||||
| return array( | return array( | ||||
| self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
| self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
| 'documentID' => 'uint32', | 'documentID' => 'uint32', | ||||
| 'fieldKey' => 'text4', | 'fieldKey' => 'text4', | ||||
| 'rawCorpus' => 'sort', | 'rawCorpus' => 'sort', | ||||
| 'termCorpus' => 'sort', | |||||
| 'normalCorpus' => 'sort', | 'normalCorpus' => 'sort', | ||||
| ), | ), | ||||
| self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
| 'key_documentfield' => array( | 'key_documentfield' => array( | ||||
| 'columns' => array('documentID', 'fieldKey'), | 'columns' => array('documentID', 'fieldKey'), | ||||
| 'unique' => true, | 'unique' => true, | ||||
| ), | ), | ||||
| ), | ), | ||||
| Show All 10 Lines | |||||