quoted_free_text_search_anywhere.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [
  2. {
  3. "query": "\"hello there\" user.email:foo@example.com \"general kenobi\"",
  4. "result": [
  5. {"type": "spaces", "value": ""},
  6. {"type": "freeText", "value": "hello there", "quoted": true, "invalid": null},
  7. {"type": "spaces", "value": " "},
  8. {
  9. "type": "filter",
  10. "filter": "text",
  11. "negated": false,
  12. "key": {"type": "keySimple", "value": "user.email", "quoted": false},
  13. "operator": "",
  14. "value": {"type": "valueText", "value": "foo@example.com", "quoted": false}
  15. },
  16. {"type": "spaces", "value": " "},
  17. {"type": "freeText", "value": "general kenobi", "quoted": true, "invalid": null},
  18. {"type": "spaces", "value": ""}
  19. ]
  20. },
  21. {
  22. "query": " \" hello \" ",
  23. "result": [
  24. {"type": "spaces", "value": " "},
  25. {"type": "freeText", "value": " hello ", "quoted": true, "invalid": null},
  26. {"type": "spaces", "value": " "}
  27. ]
  28. },
  29. {
  30. "query": " \" he\\\"llo \" ",
  31. "result": [
  32. {"type": "spaces", "value": " "},
  33. {"type": "freeText", "value": " he\\\"llo ", "quoted": true, "invalid": null},
  34. {"type": "spaces", "value": " "}
  35. ]
  36. }
  37. ]