Skip to content

Add info about changes introduced by PR #4531 #4591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 20, 2020
Merged
Changes from 1 commit
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
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