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:
parent
64e2aad46f
commit
4dd9be5c94
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue