diff --git a/src/applications/search/engine/PhabricatorSearchEngineElastic.php b/src/applications/search/engine/PhabricatorSearchEngineElastic.php index c17c4c2538..52b07bcaef 100644 --- a/src/applications/search/engine/PhabricatorSearchEngineElastic.php +++ b/src/applications/search/engine/PhabricatorSearchEngineElastic.php @@ -97,8 +97,11 @@ final class PhabricatorSearchEngineElastic extends PhabricatorSearchEngine { if (strlen($query->getParameter('query'))) { $spec[] = array( - 'term' => array( - 'field.corpus' => $query->getParameter('query'), + 'match' => array( + 'field.corpus' => array( + 'operator' => 'and', + 'query' => $query->getParameter('query'), + ), ), ); }