simple.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [
  2. {
  3. "desc": "test with raw search query at the end",
  4. "query": "user.email:foo@example.com release:1.2.1 hello",
  5. "result": [
  6. {"type": "spaces", "value": ""},
  7. {
  8. "type": "filter",
  9. "filter": "text",
  10. "negated": false,
  11. "key": {"type": "keySimple", "value": "user.email", "quoted": false},
  12. "operator": "",
  13. "value": {"type": "valueText", "value": "foo@example.com", "quoted": false}
  14. },
  15. {"type": "spaces", "value": " "},
  16. {
  17. "type": "filter",
  18. "filter": "text",
  19. "negated": false,
  20. "key": {"type": "keySimple", "value": "release", "quoted": false},
  21. "operator": "",
  22. "value": {"type": "valueText", "value": "1.2.1", "quoted": false}
  23. },
  24. {"type": "spaces", "value": " "},
  25. {"type": "freeText", "value": "hello", "quoted": false},
  26. {"type": "spaces", "value": ""}
  27. ]
  28. },
  29. {
  30. "query": "hello user.email:foo@example.com release:1.2.1",
  31. "result": [
  32. {"type": "spaces", "value": ""},
  33. {"type": "freeText", "value": "hello ", "quoted": false},
  34. {"type": "spaces", "value": ""},
  35. {
  36. "type": "filter",
  37. "filter": "text",
  38. "negated": false,
  39. "key": {"type": "keySimple", "value": "user.email", "quoted": false},
  40. "operator": "",
  41. "value": {"type": "valueText", "value": "foo@example.com", "quoted": false}
  42. },
  43. {"type": "spaces", "value": " "},
  44. {
  45. "type": "filter",
  46. "filter": "text",
  47. "negated": false,
  48. "key": {"type": "keySimple", "value": "release", "quoted": false},
  49. "operator": "",
  50. "value": {"type": "valueText", "value": "1.2.1", "quoted": false}
  51. },
  52. {"type": "spaces", "value": ""}
  53. ]
  54. }
  55. ]