Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/ferret/PhabricatorFerretField.php
| Show All 14 Lines | 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', | ||||
| 'normalCorpus' => 'sort', | 'normalCorpus' => 'sort', | ||||
| ), | ), | ||||
| self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
| 'key_document' => array( | 'key_documentfield' => array( | ||||
| 'columns' => array('documentID', 'fieldKey'), | 'columns' => array('documentID', 'fieldKey'), | ||||
| 'unique' => true, | |||||
| ), | ), | ||||
| ), | ), | ||||
| ) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
| } | } | ||||
| public function getTableName() { | public function getTableName() { | ||||
| $application = $this->getApplicationName(); | $application = $this->getApplicationName(); | ||||
| $key = $this->getIndexKey(); | $key = $this->getIndexKey(); | ||||
| return "{$application}_{$key}_ffield"; | return "{$application}_{$key}_ffield"; | ||||
| } | } | ||||
| } | } | ||||