1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 18:32:41 +01:00
phorge-phorge/src/applications/search
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
..
application Allow named queries to be reordered by dragging 2013-06-05 16:22:27 -07:00
config Search options. 2013-01-11 15:28:19 -08:00
constants Add support for differential field specifications to be indexed in search 2012-11-07 13:31:52 -08:00
controller Use filtered query instead of filter in Elasticsearch 2013-08-01 16:38:39 -07:00
engine Use filtered query instead of filter in Elasticsearch 2013-08-01 16:38:39 -07:00
index Restore search indexing to Ponder questions 2013-07-29 12:04:19 -07:00
interface Provide PhabricatorSavedQuery to renderResultsList() 2013-07-03 05:46:04 -07:00
management Remove PhabricatorPHID::fromObjectName 2013-07-22 12:17:37 -07:00
query Introduce PhabricatorSavedQueryQuery 2013-05-27 13:41:20 -07:00
selector Delete license headers from files 2012-11-05 11:16:51 -08:00
storage Allow named queries to be reordered by dragging 2013-06-05 16:22:27 -07:00
view Simplify handle rendering in search view 2013-04-02 16:49:14 -07:00