Skip to content

Commit a6c7837

Browse files
post-review correction
1 parent 34e32fe commit a6c7837

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ROOT/pages/indexes/search-performance-indexes/managing-indexes.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,12 @@ Text indexes are only used for exact query matches. To perform approximate match
290290
==== Trigram indexing
291291

292292
The default text index provider, `text-2.0`, uses trigram indexing.
293-
This means that `STRING` values are indexed into overlapping trigrams, each containing three characters.
293+
This means that `STRING` values are indexed into overlapping trigrams, each containing three Unicode code points.
294294
For example, the word `"developer"` would be indexed by the following trigrams: `["dev", "eve", "vel", "elo", "lop", "ope", "per"]`.
295295

296-
This makes text indexes particularly suited for substring (`CONTAINS`) and suffix (`ENDS WITH`) searches.
296+
This makes text indexes particularly suitable for substring (`CONTAINS`) and suffix (`ENDS WITH`) searches, as well as prefix searches (`STARTS WITH`).
297297
For example, searches like `CONTAINS "vel"` or `ENDS WITH "per"` can be efficiently performed by directly looking up the relevant trigrams in the index.
298-
By comparison, range indexes, which indexes `STRING` values alphabetically (see xref:indexes/search-performance-indexes/using-indexes.adoc#range-index-backed-order-by[Range index-backed `ORDER BY`] for more information) and are therefore more suited for prefix searches (`STARTS WITH`), would need to scan through all indexed values to check if `"vel"` existed anywhere within the text.
298+
By comparison, range indexes, which indexes `STRING` values lexicographically (see xref:indexes/search-performance-indexes/using-indexes.adoc#range-index-backed-order-by[Range index-backed `ORDER BY`] for more information) and are therefore more suited for prefix searches, would need to scan through all indexed values to check if `"vel"` existed anywhere within the text.
299299
For more information, see xref:indexes/search-performance-indexes/using-indexes.adoc#text-indexes[The impact of indexes on query performance -> Text indexes].
300300

301301
[discrete]

0 commit comments

Comments
 (0)