trailing_quote_value.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. [
  2. {
  3. "query": "device.family:\"test",
  4. "result": [
  5. {"type": "spaces", "value": ""},
  6. {
  7. "type": "filter",
  8. "filter": "text",
  9. "negated": false,
  10. "invalid": {
  11. "type": "must-be-quoted",
  12. "reason": "Quotes must enclose text or be escaped"
  13. },
  14. "key": {"type": "keySimple", "value": "device.family", "quoted": false},
  15. "operator": "",
  16. "value": {"type": "valueText", "value": "\"test", "quoted": false}
  17. },
  18. {"type": "spaces", "value": ""}
  19. ]
  20. },
  21. {
  22. "query": "url:test\"",
  23. "result": [
  24. {"type": "spaces", "value": ""},
  25. {
  26. "type": "filter",
  27. "filter": "text",
  28. "negated": false,
  29. "invalid": {
  30. "type": "must-be-quoted",
  31. "reason": "Quotes must enclose text or be escaped"
  32. },
  33. "key": {"type": "keySimple", "value": "url", "quoted": false},
  34. "operator": "",
  35. "value": {"type": "valueText", "value": "test\"", "quoted": false}
  36. },
  37. {"type": "spaces", "value": ""}
  38. ]
  39. },
  40. {
  41. "query": "url:\"test transaction:abadcafe",
  42. "result": [
  43. {"type": "spaces", "value": ""},
  44. {
  45. "type": "filter",
  46. "filter": "text",
  47. "negated": false,
  48. "invalid": {
  49. "type": "must-be-quoted",
  50. "reason": "Quotes must enclose text or be escaped"
  51. },
  52. "key": {"type": "keySimple", "value": "url", "quoted": false},
  53. "operator": "",
  54. "value": {"type": "valueText", "value": "\"test", "quoted": false}
  55. },
  56. {"type": "spaces", "value": " "},
  57. {
  58. "type": "filter",
  59. "filter": "text",
  60. "negated": false,
  61. "key": {"type": "keySimple", "value": "transaction", "quoted": false},
  62. "operator": "",
  63. "value": {"type": "valueText", "value": "abadcafe", "quoted": false}
  64. },
  65. {"type": "spaces", "value": ""}
  66. ]
  67. },
  68. {
  69. "query": "url:te\"st transaction:abadcafe",
  70. "result": [
  71. {"type": "spaces", "value": ""},
  72. {
  73. "type": "filter",
  74. "filter": "text",
  75. "negated": false,
  76. "invalid": {
  77. "type": "must-be-quoted",
  78. "reason": "Quotes must enclose text or be escaped"
  79. },
  80. "key": {"type": "keySimple", "value": "url", "quoted": false},
  81. "operator": "",
  82. "value": {"type": "valueText", "value": "te\"st", "quoted": false}
  83. },
  84. {"type": "spaces", "value": " "},
  85. {
  86. "type": "filter",
  87. "filter": "text",
  88. "negated": false,
  89. "key": {"type": "keySimple", "value": "transaction", "quoted": false},
  90. "operator": "",
  91. "value": {"type": "valueText", "value": "abadcafe", "quoted": false}
  92. },
  93. {"type": "spaces", "value": ""}
  94. ]
  95. }
  96. ]