mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Add comments
This commit is contained in:
parent
3ce69b6306
commit
05718706ab
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,7 @@ final class PhabricatorSearchEngineElastic extends PhabricatorSearchEngine {
|
||||||
$phid = $doc->getPHID();
|
$phid = $doc->getPHID();
|
||||||
$handle = PhabricatorObjectHandleData::loadOneHandle($phid);
|
$handle = PhabricatorObjectHandleData::loadOneHandle($phid);
|
||||||
|
|
||||||
|
// URL is not used internally but it can be useful externally.
|
||||||
$spec = array(
|
$spec = array(
|
||||||
'title' => $doc->getDocumentTitle(),
|
'title' => $doc->getDocumentTitle(),
|
||||||
'url' => PhabricatorEnv::getProductionURI($handle->getURI()),
|
'url' => PhabricatorEnv::getProductionURI($handle->getURI()),
|
||||||
|
@ -144,6 +145,8 @@ final class PhabricatorSearchEngineElastic extends PhabricatorSearchEngine {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
// We couldn't solve it by minimum_number_should_match because it can
|
||||||
|
// match multiple owners without matching author.
|
||||||
$spec[] = array('bool' => array('should' => $should));
|
$spec[] = array('bool' => array('should' => $should));
|
||||||
} else if ($param) {
|
} else if ($param) {
|
||||||
$filter[] = array(
|
$filter[] = array(
|
||||||
|
|
Loading…
Reference in a new issue