Skip to content

File Search: Advanced syntax #48

@SpraxDev

Description

@SpraxDev
  • "Hello World" String within parentheses is treated as one
  • + and - can be used to include/exclude the following word/sentence
  • filter:value supplies a value to a given filter (e.g. type:image or type:directory)
    • filetype / type filters for file type (e.g. file, directory, image, video)
    • sort:something / order:something allows the search results to be sorted by something
      • Combining with - allows the sorting order to be inverted (+ is default)
    • sha256:, md5:, etc. for searching for files with a given hash
  • a or b / a | b can be used to search for one of them (or both) instead of the default and behavior
  • a and b can be used to explicitly match both at once (default behavior)
  • * can be used as wildcard (e.g. invoice*.pdf would match invoice_2022.pdf)
  • ( ... ) allows for grouping (e.g. (a or b) or (c and d))

All of these can be combined and used at once: *.pdf or type:directory -content:"Invoice 2022"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions