Differential D10601 Diff 25473 src/applications/search/storage/document/PhabricatorSearchDocumentField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/storage/document/PhabricatorSearchDocumentField.php
Show All 16 Lines | return array( | ||||
'auxPHID' => 'phid?', | 'auxPHID' => 'phid?', | ||||
'corpus' => 'text?', | 'corpus' => 'text?', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'key_phid' => null, | 'key_phid' => null, | ||||
'phid' => array( | 'phid' => array( | ||||
'columns' => array('phid'), | 'columns' => array('phid'), | ||||
), | ), | ||||
// NOTE: This is a fulltext index! Be careful! | |||||
'corpus' => array( | 'corpus' => array( | ||||
'columns' => array('corpus'), | 'columns' => array('corpus'), | ||||
'type' => 'FULLTEXT', | |||||
), | ), | ||||
epriestley: Explicitly mark this fulltext. | |||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function getIDKey() { | public function getIDKey() { | ||||
return 'phid'; | return 'phid'; | ||||
} | } | ||||
} | } |
Explicitly mark this fulltext.