Homec4science

switch from term query to match query

Authored by Lex <lex@deviantart.com> on Jul 10 2014, 00:47.

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

Committed
epriestley <git@epriestley.com>Jul 10 2014, 00:47
Pushed
aubortJan 31 2017, 17:16
Parents
rPH4dd9be5c94da: change elasticsearch text query to match query for compat with 1.1.0
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHa230e0fab7af: switch from term query to match query (authored by Lex <lex@deviantart.com>).Jul 10 2014, 00:47