elasticsearch/docs/reference/query-languages/esql/_snippets/functions/examples/qstr.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
630 B
Markdown
Raw Normal View History

% This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
**Examples**
```esql
FROM books
| WHERE QSTR("author: Faulkner")
```
| book_no:keyword | author:text |
| --- | --- |
| 2378 | [Carol Faulkner, Holly Byers Ochoa, Lucretia Mott] |
| 2713 | William Faulkner |
| 2847 | Colleen Faulkner |
| 2883 | William Faulkner |
| 3293 | Danny Faulkner |
```esql
FROM books
| WHERE QSTR("title: Hobbjt~", {"fuzziness": 2})
```
| book_no:keyword | title:text |
| --- | --- |
| 4289 | Poems from the Hobbit |
| 6405 | The Hobbit or There and Back Again |
| 7480 | The Hobbit |