Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1069
set_query.diff
Active
Public
Actions
Authored by
epriestley
on Feb 17 2014, 5:45 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F114782: set_query.diff
Feb 17 2014, 5:45 PM
2014-02-17 17:45:42 (UTC+0)
Subscribers
None
diff --git a/src/applications/search/engine/PhabricatorSearchEngineElastic.php b/src/applications/search/engine/PhabricatorSearchEngineElastic.php
index 95b973a..120460a 100644
--- a/src/applications/search/engine/PhabricatorSearchEngineElastic.php
+++ b/src/applications/search/engine/PhabricatorSearchEngineElastic.php
@@ -222,7 +222,8 @@ final class PhabricatorSearchEngineElastic extends PhabricatorSearchEngine {
throw $ex;
}
$query = clone $query;
- $query->setQuery(
+ $query->setParameter(
+ 'query',
addcslashes(
$query->getParameter('query'), '+-&|!(){}[]^"~*?:\\'));
$response = $this->executeRequest($uri, $this->buildSpec($query));
Event Timeline
epriestley
edited the content of this paste.
(Show Details)
Feb 17 2014, 5:45 PM
2014-02-17 17:45:42 (UTC+0)
epriestley
changed the title of this paste from untitled to
set_query.diff
.
epriestley
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment