Skip to content

Commit dd3dfde

Browse files
Chad Horohoeepriestley
Chad Horohoe
authored and
epriestley
committedMay 28, 2014
T4446: Fix Elasticsearch support for 1.0 and above
Summary: Elasticsearch 1.0 deprecated the "filter" top-level parameter in favor of "post_filter" which is applied after scores and so forth are calculated. Instead search field.corpus with a term query. Test Plan: Tested against Elasticsearch 1.1.1, able to perform basic queries without query parse errors. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Maniphest Tasks: T4446 Differential Revision: https://secure.phabricator.com/D9321
1 parent c7a7574 commit dd3dfde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/applications/search/engine/PhabricatorSearchEngineElastic.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private function buildSpec(PhabricatorSavedQuery $query) {
9797

9898
if (strlen($query->getParameter('query'))) {
9999
$spec[] = array(
100-
'field' => array(
100+
'term' => array(
101101
'field.corpus' => $query->getParameter('query'),
102102
),
103103
);

0 commit comments

Comments
 (0)
Failed to load comments.