1
0
Fork 0
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:
vrana 2012-04-25 09:56:41 -07:00
parent 3ce69b6306
commit 05718706ab

View file

@ -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(