mail-query 0.1.0

Parser and typed AST for Gmail-style email search queries. Backend-agnostic.
Documentation
1
2
3
4
5
6
7
8
9
10
11
{
  "name": "exact-plus-word",
  "description": "+word is exact-match (no stemming). Mirrors Gmail's +word semantics.",
  "spec": {
    "source": "Gmail search operators",
    "url": "https://support.google.com/mail/answer/7190",
    "behavior": "Prefix +word disables stemming/synonym expansion for that term. The backend should pass the term through to its index as an exact term."
  },
  "input": "+stripe",
  "expected_ast": { "Exact": "stripe" }
}