1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/applications/search/controller
Jakub Vrana 6c7f36f6b8 Use filtered query instead of filter in Elasticsearch
Summary:
The 'filter' works like this: Get all results matching query (all if there's no query), compute facets (if there are any) and then filter out the uninteresting results.
The 'filtered' query applies the filters when searching, not when processing results.
This is obviously not documented anywhere in the great Elasticsearch documentation.
http://stackoverflow.com/questions/14007078/performance-of-elastic-queries

We don't hit this problem very often as we usually use some query.

Test Plan: Searched for open documents using Elasticsearch, verified the sent JSON, verified results.

Reviewers: epriestley, wez

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D6643
2013-08-01 16:38:39 -07:00
..
PhabricatorApplicationSearchController.php Add a "disabled" style 2013-07-12 11:31:20 -07:00
PhabricatorSearchAttachController.php Use application PHIDs in Pholio Mocks 2013-07-22 12:17:36 -07:00
PhabricatorSearchBaseController.php Delete license headers from files 2012-11-05 11:16:51 -08:00
PhabricatorSearchController.php Use application PHIDs in Phriction 2013-07-24 11:32:13 -07:00
PhabricatorSearchDeleteController.php Allow named queries to be reordered by dragging 2013-06-05 16:22:27 -07:00
PhabricatorSearchEditController.php Make query results page slightly more generic 2013-05-27 13:43:02 -07:00
PhabricatorSearchHovercardController.php Hovercard tweaks 2013-04-06 21:16:55 -07:00
PhabricatorSearchOrderController.php Allow named queries to be reordered by dragging 2013-06-05 16:22:27 -07:00
PhabricatorSearchSelectController.php Use filtered query instead of filter in Elasticsearch 2013-08-01 16:38:39 -07:00