Skip to content

Commit

Permalink
docs(readme): improve web query example formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Nov 12, 2024
1 parent e67fb59 commit c1da583
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ tools/import jsonl example.jsonl example.sqlite3
The default full-text search query syntax in tinyfts resembles that of a Web search engine.
It can handle the following types of expressions.

- `foo` — search for the word *foo*.
- `"foo bar"` — search for the phrase *foo bar*.
- `foo AND bar`, `foo OR bar`, `NOT foo` — search for both *foo* and *bar*,
at least one of *foo* and *bar*,
documents without *foo* respectively.
*foo AND bar* is identical to *foo bar*.
The operators *AND*, *OR*, and *NOT* must be in all caps.
- `foo` — search for the word `foo`.
- `"foo bar"` — search for the phrase `foo bar`.
- `foo AND bar`, `foo OR bar`, `NOT foo` — search for both `foo` and `bar`,
at least one of `foo` and `bar`,
and documents without `foo` respectively.
`foo AND bar` is identical to `foo bar`.
The operators `AND`, `OR`, and `NOT` must be in all caps.
- `-foo`, `-"foo bar"` — the same as `NOT foo`, `NOT "foo bar"`.

### FTS5
Expand Down

0 comments on commit c1da583

Please sign in to comment.