You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/indexes/search-performance-indexes/using-indexes.adoc
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,14 +235,35 @@ Text indexes do not store `STRING` properties alphabetically, and are instead op
235
235
That said, if no range index had been present on the name property, the previous query would still have been able to utilize the text index.
236
236
It would have done so less efficiently than a range index, but it still would have been useful.
237
237
238
-
239
238
For more information about range index ordering, see the section on xref:indexes/search-performance-indexes/using-indexes.adoc#range-index-backed-order-by[Range index-backed ORDER BY].
240
239
241
240
[TIP]
242
241
Text indexes are only used for exact query matches. To perform approximate matches (including, for example, variations and typos), and to compute a similarity score between `STRING` values, use semantic xref:indexes/semantic-indexes/full-text-indexes.adoc[full-text indexes] instead.
243
242
244
243
For more information about the predicates supported by text indexes, see xref:indexes/search-performance-indexes/managing-indexes.adoc#text-indexes-supported-predicates[Create, show, and delete indexes -> Text indexes: supported predicates].
245
244
245
+
[[text-index-dictionary-variables]]
246
+
=== Ensuring text index use
247
+
248
+
In order for the planner to use text indexes, it must be able to confirm that the properties included in the predicate are `STRING` values.
249
+
This is not possible when accessing property values within nodes or relationships, or values within a `MAP`, since Cypher does not store the type information of these values.
250
+
To ensure text indexes are used in these cases, the xref:functions/string.adoc#functions-tostring[`toString`] function should be used.
For information about how to ensure the use of text indexes when predicates may contain `null` values, see xref:indexes/search-performance-indexes/using-indexes/indexes-and-null[Indexes and `null` values].
0 commit comments