Skip to content

Commit 01e0f70

Browse files
DEV: correct autocomplete usage on tech. overview page (#1245)
* DEV: correct autocomplete usage on tech. overview page * Apply suggestions from code review Thank you, @andy-stark-redis! Co-authored-by: andy-stark-redis <164213578+andy-stark-redis@users.noreply.github.com> --------- Co-authored-by: andy-stark-redis <164213578+andy-stark-redis@users.noreply.github.com>
1 parent 6b0d8b4 commit 01e0f70

File tree

1 file changed

+8
-6
lines changed
  • content/develop/interact/search-and-query/administration

1 file changed

+8
-6
lines changed

content/develop/interact/search-and-query/administration/overview.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ All of this is done while taking advantage of Redis's robust architecture and in
4646
* Optional and negative queries
4747
* Tag filtering
4848
* Prefix matching
49-
* A powerful auto-complete engine with fuzzy matching.
49+
* A powerful autocomplete engine with fuzzy matching.
5050
* Multiple scoring models and sorting by values.
5151
* Concurrent, low-latency insertion and updates of documents.
5252
* Concurrent searches allowing long-running queries without blocking Redis.
@@ -153,9 +153,9 @@ The main differences between tag fields and full-text fields are:
153153

154154
Geo indexes utilize Redis's own geo-indexing capabilities. At query time, the geographical part of the query (a radius filter) is sent to Redis, returning only the ids of documents that are within that radius. Longitude and latitude should be passed as a string `lon,lat`. For example, `1.23,4.56`.
155155

156-
### Auto-complete
156+
### Autocomplete
157157

158-
The auto-complete engine (see below for a fuller description) utilizes a compact trie or prefix tree to encode terms and search them by prefix.
158+
The autocomplete engine (see below for a fuller description) uses a compact trie or prefix tree to encode terms and search them by prefix.
159159

160160
## Query language
161161

@@ -281,17 +281,19 @@ Summarization will fragment the text into smaller sized snippets. Each snippet w
281281

282282
Highlighting will highlight the found term and its variants with a user-defined tag. This may be used to display the matched text in a different typeface using a markup language, or to otherwise make the text appear differently.
283283

284-
## Auto-completion
284+
## Autocomplete
285285

286-
Another important feature for Redis Stack is its auto-complete engine. This allows users to create dictionaries of weighted terms, and then query them for completion suggestions to a given user prefix. Completions can have payloads, which are user-provided pieces of data that can be used for display. For example, completing the names of users, it is possible to add extra metadata about users to be displayed.
286+
Another important feature for Redis Stack is its autocomplete engine. This allows users to create dictionaries of weighted terms, and then query them for completion suggestions to a given user prefix. Completions can have payloads, which are user-provided pieces of data that can be used for display. For example, completing the names of users, it is possible to add extra metadata about users to be displayed.
287287

288288
For example, if a user starts to put the term “lcd tv” into a dictionary, sending the prefix “lc” will return the full term as a result. The dictionary is modeled as a compact trie (prefix tree) with weights, which is traversed to find the top suffixes of a prefix.
289289

290290
Redis Stack also allows fuzzy suggestions, meaning you can get suggestions to prefixes even if the user makes a typo in their prefix. This is enabled using a Levenshtein automaton, allowing efficient searching of the dictionary for all terms within a maximal Levenshtein distance of a term or prefix. Suggestions are then weighted based on both their original score and their distance from the prefix typed by the user.
291291

292292
However, searching for fuzzy prefixes (especially very short ones) will traverse an enormous number of suggestions. In fact, fuzzy suggestions for any single letter will traverse the entire dictionary, so the recommendation is to use this feature carefully and in full consideration of the performance penalty it incurs.
293293

294-
Redis Stack's auto-completer supports Unicode, allowing for fuzzy matches in non-latin languages as well.
294+
Redis Stack's autocomplete engine supports Unicode, allowing for fuzzy matches in non-latin languages as well.
295+
296+
See the [autocomplete page]({{< relref "/develop/interact/search-and-query/advanced-concepts/autocomplete" >}}) for more information and examples.
295297

296298
## Search engine internals
297299

0 commit comments

Comments
 (0)