HomePhorge

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
LexAuthored on Jul 9 2014, 3:47 PM
epriestleyCommitted on Jul 9 2014, 3:47 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP4dd9be5c94da: change elasticsearch text query to match query for compat with 1.1.0
Branches
Unknown
Tags
Unknown

Event Timeline