Search operator

00001007705000 · Ref · Info · (manual) · #manual #search #zettelstore (all) · Context

A search operator specifies how the comparison of a search value and a zettel should be executed. Every comparison is done case-insensitive, treating all uppercase letters the same as lowercase letters.

The following are allowed search operator characters:

Since the exclamation mark character can be combined with the other operators, there are 18 possible combinations:

  1. “!”: is an abbreviation of the “!~” operator.
  2. “~”: is successful if the search value matches the value to be compared.
  3. “!~”: is successful if the search value does not match the value to be compared.
  4. “=”: is successful if the search value is equal to one word of the value to be compared.
  5. “!=”: is successful if the search value is not equal to any word of the value to be compared.
  6. “[”: is successful if the search value is a prefix of the value to be compared.
  7. “![”: is successful if the search value is not a prefix of the value to be compared.
  8. “]”: is successful if the search value is a suffix of the value to be compared.
  9. “!]”: is successful if the search value is not a suffix of the value to be compared.
  10. “:”: is successful if the search value is has/matches one word of the value to be compared.
  11. “!:”: is successful if the search value does not match/has to any word of the value to be compared.
  12. “<”: is successful if the search value is less than the value to be compared.
  13. “!<”: is successful if the search value is not less than, e.g. greater or equal than the value to be compared.
  14. “>”: is successful if the search value is greater than the value to be compared.
  15. “!>”: is successful if the search value is not greater than, e.g. less or equal than the value to be compared.
  16. “?”: is successful if the metadata contains the given key.
  17. “!?”: is successful if the metadata does not contain the given key.
  18. “”: a missing search operator can only occur for a full-text search. It is equal to the “~” operator.