Page MenuHomePhorge

PhabricatorFerretField.php
No OneTemporary

Size
950 B
Referenced Files
None
Subscribers
None

PhabricatorFerretField.php

<?php
abstract class PhabricatorFerretField
extends PhabricatorSearchDAO {
protected $documentID;
protected $fieldKey;
protected $rawCorpus;
protected $termCorpus;
protected $normalCorpus;
abstract public function getIndexKey();
protected function getConfiguration() {
return array(
self::CONFIG_TIMESTAMPS => false,
self::CONFIG_COLUMN_SCHEMA => array(
'documentID' => 'uint32',
'fieldKey' => 'text4',
'rawCorpus' => 'sort',
'termCorpus' => 'sort',
'normalCorpus' => 'sort',
),
self::CONFIG_KEY_SCHEMA => array(
'key_documentfield' => array(
'columns' => array('documentID', 'fieldKey'),
'unique' => true,
),
),
) + parent::getConfiguration();
}
public function getTableName() {
$application = $this->getApplicationName();
$key = $this->getIndexKey();
return "{$application}_{$key}_ffield";
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 5, 3:10 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69123
Default Alt Text
PhabricatorFerretField.php (950 B)

Event Timeline