HomePhabricator

switch from term query to match query

Description

switch from term query to match query

Summary:
Switch to the match query. The operator is set to and because it defaults to or which is likely to annoy users. We might want to consider using query_string to get booleans, wildcards, and other features. The only problem with query_string is that it can allow querying on other fields in the json document, and we may want to prevent that. That might even expose information we don't want to expose. Another option would be to parse booleans ourselves and translate them to the ES query DSL.

fixes T5488

Test Plan: Try the vpn/VPN test case described in T5488.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: WikiChad, epriestley, Korvin

Maniphest Tasks: T5488

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

Details

Provenance
lexelbyAuthored on
epriestleyCommitted on Jul 9 2014, 10:47 PM
epriestleyPushed on Jul 9 2014, 10:47 PM
Reviewer
Blessed Reviewers
Differential Revision
D9785: switch from term query to match query
Parents
rP4dd9be5c94da: change elasticsearch text query to match query for compat with 1.1.0
Branches
Unknown
Tags
Unknown
Tasks
T5488: Searches containing capital letters return no results

Event Timeline