trailing_quote_value.json 2.6 KB

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