Skip to content

Commit

Permalink
Add info about changes introduced by PR #4531
Browse files Browse the repository at this point in the history
  • Loading branch information
animesh2049 committed Jan 16, 2020
1 parent 44cbf94 commit e1bba3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wiki/content/query-language/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ Query Example: Some of Bollywood director and actor Farhan Akhtar's movies have

## Functions

{{% notice "note" %}}Functions can only be applied to [indexed]({{< relref "#indexing">}}) predicates.{{% /notice %}}

Functions allow filtering based on properties of nodes or variables. Functions can be applied in the query root or in filters.

{{% notice "note" %}}At query root, functions can only be applied to [indexed]({{< relref "#indexing">}}) predicates. For applying comparision functions (`eq`, `ge`, `gt`, `le`, `lt`) at filter, predicates need not necessarily be indexed. But using filters on non-indexed predicate could potentially slow down your query. Other fucntions require predicates to be indexed even at filter.{{% /notice %}}

For functions on string valued predicates, if no language preference is given, the function is applied to all languages and strings without a language tag; if a language preference is given, the function is applied only to strings of the given language.


Expand Down Expand Up @@ -468,7 +468,7 @@ Syntax Examples:

Schema Types: `int`, `float`, `bool`, `string`, `dateTime`

Index Required: An index is required for the `eq(predicate, ...)` forms (see table below). For `count(predicate)` at the query root, the `@count` index is required. For variables the values have been calculated as part of the query, so no index is required.
Index Required: An index is required for the `eq(predicate, ...)` forms (see table below) when used at query root. For `count(predicate)` at the query root, the `@count` index is required. For variables the values have been calculated as part of the query, so no index is required.

| Type | Index Options |
|:-----------|:--------------|
Expand Down Expand Up @@ -530,7 +530,7 @@ With `IE` replaced by

Schema Types: `int`, `float`, `string`, `dateTime`

Index required: An index is required for the `IE(predicate, ...)` forms (see table below). For `count(predicate)` at the query root, the `@count` index is required. For variables the values have been calculated as part of the query, so no index is required.
Index required: An index is required for the `IE(predicate, ...)` forms (see table below) when used at query root. For `count(predicate)` at the query root, the `@count` index is required. For variables the values have been calculated as part of the query, so no index is required.

| Type | Index Options |
|:-----------|:--------------|
Expand Down

0 comments on commit e1bba3f

Please sign in to comment.