Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
🐛 Text mode created between syntax does not work siyuan-note/siyuan…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Feb 27, 2021
1 parent c96857c commit f4ed7b0
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions Advanced search/0 Global search text mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ Support operators `AND`, `OR` and `NOT` (note that capitalization is required).
{: id="20201224120448-yei9n1e"}

* {: id="20201224120448-pu2kash"}`AND` can be omitted, for example, `foo AND bar` can be abbreviated as `foo bar`
{: id="20210227102727-osv3hov"}
* {: id="20201224120448-ufj7cne"}`OR` can be replaced by `||`, `AND` can be replaced by `&&`, such as `foo && bar || baz`
{: id="20210227102727-xukywn3"}
* {: id="20201224120448-tdpdev9"}`NOT` can be abbreviated as prefix `!` or `-`, for example, `foo NOT bar` can be abbreviated as `foo !bar` or `foo -bar`
{: id="20210227102727-kuhz54o"}
{: id="20201224120448-7hjhl5g"}

## Exact match
Expand All @@ -19,7 +22,9 @@ Support for specifying exact matching through `""`, for example, `"foo"` means t
{: id="20201224120448-2n0dios"}

* {: id="20201224120448-sged3z7"}Supports specifying a single character through `?`, for example, `f?o` can be fuzzy matching fo, fao, fbo
{: id="20210227102727-4gwvq7q"}
* {: id="20201224120448-yytqban"}Support specifying multiple characters through `*`, for example, `f*o` can be fuzzy matching fo, fao, fabco
{: id="20210227102727-ecnfk3w"}
{: id="20201224120448-vml16gr"}

## Regular match
Expand All @@ -38,21 +43,30 @@ Supports specifying priority through `()`, for example, `foo AND (bar OR baz)` m
{: id="20201224120448-jojjs8o"}

* {: id="20201224120448-5n2lr4o"}`path`: supports specifying the document path through `path:foo`, for example, `path:!foo` means searching in documents that do not contain the path foo; `path:(foo OR bar)` means the path is foo Or search in the documentation of bar
{: id="20210227102727-pw144od"}
* {: id="20201224120448-5a519a3"}`type`: Supports specifying the content block type through `type:foo`, available types please refer to ((20201222100222-q47d64s "Type filtering")). For example, `type:h` means searching in the heading; `type:(m OR c)` means searching in a mathematical formula block or code block
{: id="20210227102727-97vwz6l"}

* {: id="20201225171153-5uu0mrq"}The `AND` logical conjunction of keywords and types supports abbreviation. For example, `foo type:h` can be abbreviated as `h:foo`; `(foo OR bar) type:l` can be abbreviated as `l:(foo OR bar) `. But `foo type:(l OR h)` cannot be abbreviated as `(l OR h):foo`, which means that the specified field must be a specific one
{: id="20210227102727-a4baqet"}
{: id="20201225171154-ujt8hoc"}
* {: id="20210112163745-3n24sso"}`markdown`: the default is to search on plain text. If you need to search the original Markdown text, use `markdown:foo`. For example, you can search the to-do list by `markdown:"[] "AND type:l`
{: id="20210227102727-6aec2x4"}
{: id="20201224120448-48l2e0q"}

## Specify time range
{: id="20201224120448-sdjlz5y"}

Support to specify the content block creation time through `time: [20200219 TO 20200825]`, for example, `time: [20200219163030 TO 20200825]` means that from February 19th, 2020 at 16:30:30 PM to August 25th, 2020 Search in the content block created at 00: 00: 00: 00.
{: id="20201224120448-wi1kjaz"}
Support to specify the content block creation time through `created: [20200219 TO 20200825]`, for example, `created: [20200219163030 TO 20200825]` means that from February 19th, 2020 at 16:30:30 PM to August 25th, 2020 at 00: 00: 00: 00 search in the content block created.
{: id="20201224120448-wi1kjaz" updated="20210227102855"}

* {: id="20201224120448-s2w7388"}`[` means greater than or equal to, `{` means greater than; `]` means less than or equal to, `}` means less than
* {: id="20201224120448-np8fi3u"}You can mix `[` and `{`, such as `time: [20200219 TO 20200825}`
{: id="20201224120448-brfxvtb"}
{: id="20210227102727-44lqlod"}
* {: id="20201224120448-np8fi3u"}You can mix `[` and `{`, such as `created: [20200219 TO 20200825}`
{: id="20210227102727-zckosot"}
* {: id="20210227102742-eq10nk5"}If you need to query by update time, replace `created` with `updated`
{: id="20210227102742-e19f0tb" updated="20210227102742"}
{: id="20201224120448-brfxvtb" updated="20210227102800"}

## Escape character
{: id="20201225090933-mcc6ctz"}
Expand Down

0 comments on commit f4ed7b0

Please sign in to comment.