mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-01 15:08:14 +02: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();
|
$should = array();
|
||||||
foreach ($param as $val) {
|
foreach ($param as $val) {
|
||||||
$should[] = array(
|
$should[] = array(
|
||||||
'text' => array(
|
'match' => array(
|
||||||
"relationship.{$field}.phid" => array(
|
"relationship.{$field}.phid" => array(
|
||||||
'query' => $val,
|
'query' => $val,
|
||||||
'type' => 'phrase',
|
'type' => 'phrase',
|
||||||
|
|
Loading…
Add table
Reference in a new issue