Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions content/develop/interact/search-and-query/query/full-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ Words that occur very often in natural language, such as `the` or `a` for the En

The following example searches for all bicycles that have the word 'kids' in the description:

```
{{< clients-example query_ft ft1 >}}
FT.SEARCH idx:bicycle "@description: kids"
```
{{< /clients-example >}}

## Phrase

Expand All @@ -73,9 +73,9 @@ The prefix needs to be at least two characters long.

Here is an example that shows you how to search for bicycles with a brand that starts with 'ka':

```
{{< clients-example query_ft ft2 >}}
FT.SEARCH idx:bicycle "@model: ka*"
```
{{< /clients-example >}}

## Word suffix

Expand All @@ -93,9 +93,9 @@ FT.SEARCH index "*infix*"

Here is an example that finds all brands that end with 'bikes':

```
{{< clients-example query_ft ft3 >}}
FT.SEARCH idx:bicycle "@brand:*bikes"
```
{{< /clients-example >}}

## Fuzzy search

Expand All @@ -109,12 +109,12 @@ FT.SEARCH index "%word%"

The following example finds all documents that contain a word that has a distance of one to the incorrectly spelled word 'optamized'. You can see that this matches the word 'optimized'.

```
{{< clients-example query_ft ft4 >}}
FT.SEARCH idx:bicycle "%optamized%"
```
{{< /clients-example >}}

If you want to increase the maximum word distance to two, you can use the following query:

```
{{< clients-example query_ft ft5 >}}
FT.SEARCH idx:bicycle "%%optamised%%"
```
{{< /clients-example >}}