Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122200670
PhabricatorSearchDocument.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jul 16, 13:55
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jul 18, 13:55 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27448821
Attached To
rPH Phabricator
PhabricatorSearchDocument.php
View Options
<?php
final
class
PhabricatorSearchDocument
extends
PhabricatorSearchDAO
{
protected
$documentType
;
protected
$documentTitle
;
protected
$documentCreated
;
protected
$documentModified
;
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_TIMESTAMPS
=>
false
,
self
::
CONFIG_IDS
=>
self
::
IDS_MANUAL
,
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'documentType'
=>
'text4'
,
'documentTitle'
=>
'text255'
,
'documentCreated'
=>
'epoch'
,
'documentModified'
=>
'epoch'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'key_phid'
=>
null
,
'PRIMARY'
=>
array
(
'columns'
=>
array
(
'phid'
),
'unique'
=>
true
,
),
'documentCreated'
=>
array
(
'columns'
=>
array
(
'documentCreated'
),
),
'key_type'
=>
array
(
'columns'
=>
array
(
'documentType'
,
'documentCreated'
),
),
),
)
+
parent
::
getConfiguration
();
}
public
function
getIDKey
()
{
return
'phid'
;
}
public
static
function
newQueryCompiler
()
{
$table
=
new
self
();
$conn
=
$table
->
establishConnection
(
'r'
);
$compiler
=
new
PhutilSearchQueryCompiler
();
$operators
=
queryfx_one
(
$conn
,
'SELECT @@ft_boolean_syntax AS syntax'
);
if
(
$operators
)
{
$compiler
->
setOperators
(
$operators
[
'syntax'
]);
}
return
$compiler
;
}
}
Event Timeline
Log In to Comment