From 4dd9be5c94da6c330411276420c68f3655df40a4 Mon Sep 17 00:00:00 2001 From: Lex Date: Wed, 9 Jul 2014 15:41:12 -0700 Subject: [PATCH] change elasticsearch text query to match query for compat with 1.1.0 Summary: ElasticSearch silently removed the long-deprecated `text` query in favor of the `match` query. `match` works just like `text`, so the fix is simple. fixes T5507 Test Plan: see if the breakage is fixed Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: WikiChad, epriestley, Korvin Maniphest Tasks: T5507 Differential Revision: https://secure.phabricator.com/D9784 --- .../search/engine/PhabricatorSearchEngineElastic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/search/engine/PhabricatorSearchEngineElastic.php b/src/applications/search/engine/PhabricatorSearchEngineElastic.php index 59bb2af0df..c17c4c2538 100644 --- a/src/applications/search/engine/PhabricatorSearchEngineElastic.php +++ b/src/applications/search/engine/PhabricatorSearchEngineElastic.php @@ -152,7 +152,7 @@ final class PhabricatorSearchEngineElastic extends PhabricatorSearchEngine { $should = array(); foreach ($param as $val) { $should[] = array( - 'text' => array( + 'match' => array( "relationship.{$field}.phid" => array( 'query' => $val, 'type' => 'phrase',