1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 13:22:42 +01:00

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
This commit is contained in:
Lex 2014-07-09 15:41:12 -07:00 committed by epriestley
parent 64e2aad46f
commit 4dd9be5c94

View file

@ -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',