Add "absent" and "present" field operators to the Ferret query compiler
commitf31b9987ba1b8f78fab3a60a9d31e009dc4fa737
authorepriestley <git@epriestley.com>
Tue, 14 Apr 2020 15:59:13 +0000 (14 08:59 -0700)
committerepriestley <git@epriestley.com>
Tue, 14 Apr 2020 17:47:20 +0000 (14 10:47 -0700)
tree11dabf75600c63dcc3a5be34eec544a0aee06699
parent5c30a60e305f4a763c2be7bffea5127c1c6e0396
Add "absent" and "present" field operators to the Ferret query compiler

Summary: Ref T13509. Parse "xyz:-" as "xyz is absent" and "xyz:~" as "xyz is present". These are new operators which the compiler emits separately from "not" and "substring".

Test Plan: Added unit tests, ran unit tests.

Maniphest Tasks: T13509

Differential Revision: https://secure.phabricator.com/D21107
src/applications/search/compiler/PhutilSearchQueryCompiler.php
src/applications/search/compiler/__tests__/PhutilSearchQueryCompilerTestCase.php