@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Switch normal query from match to simple_query_string

Summary:
It's like query_string but fails a little nicer on bad
input. It also allows for limited Lucene syntax; notably
exact string matches with quotation marks.

Fixes T6780

Test Plan:
Tested multiple query constructions, including exact string
matching.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Maniphest Tasks: T6780

Differential Revision: https://secure.phabricator.com/D11011

authored by

Chad Horohoe and committed by
epriestley
c953c0fe bdda6118

+3 -5
+3 -5
src/applications/search/engine/PhabricatorSearchEngineElastic.php
··· 99 99 100 100 if (strlen($query->getParameter('query'))) { 101 101 $spec[] = array( 102 - 'match' => array( 103 - 'field.corpus' => array( 104 - 'operator' => 'and', 105 - 'query' => $query->getParameter('query'), 106 - ), 102 + 'simple_query_string' => array( 103 + 'query' => $query->getParameter('query'), 104 + 'fields' => array( 'field.corpus' ), 107 105 ), 108 106 ); 109 107 }