Fix Sling Query table
Project: http://git-wip-us.apache.org/repos/asf/sling-site/repo Commit: http://git-wip-us.apache.org/repos/asf/sling-site/commit/e0d86f78 Tree: http://git-wip-us.apache.org/repos/asf/sling-site/tree/e0d86f78 Diff: http://git-wip-us.apache.org/repos/asf/sling-site/diff/e0d86f78 Branch: refs/heads/master Commit: e0d86f78c3d8b4b06eadec8503d5b352f3da8f0f Parents: bdde83a Author: Bertrand Delacretaz <[email protected]> Authored: Tue Sep 26 13:10:37 2017 +0200 Committer: Bertrand Delacretaz <[email protected]> Committed: Tue Sep 26 13:10:37 2017 +0200 ---------------------------------------------------------------------- .../content/documentation/bundles/sling-query/vs-jcr.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sling-site/blob/e0d86f78/src/main/jbake/content/documentation/bundles/sling-query/vs-jcr.md ---------------------------------------------------------------------- diff --git a/src/main/jbake/content/documentation/bundles/sling-query/vs-jcr.md b/src/main/jbake/content/documentation/bundles/sling-query/vs-jcr.md index 6d4e0fc..8d439d1 100644 --- a/src/main/jbake/content/documentation/bundles/sling-query/vs-jcr.md +++ b/src/main/jbake/content/documentation/bundles/sling-query/vs-jcr.md @@ -11,10 +11,10 @@ As a rule of thumb - if you have a complex Java loop reading resource children o | Description | JCR query | SlingQuery | | ------------------------------------------------------|-----------|------------| -| You have a complex logic using Sling Resource API | - | Yes! | -| You want to find resource ancestor | - | Yes! | -| You want to find all descendants with given attribute | Yes! | - | -| You want to find all descendants of given type | Yes! | - | -| You'd like to get ordered results | Yes! | - | +| You have a complex logic using Sling Resource API | (-) | Yes! | +| You want to find resource ancestor | (-) | Yes! | +| You want to find all descendants with given attribute | Yes! | (-) | +| You want to find all descendants of given type | Yes! | (-) | +| You'd like to get ordered results | Yes! | (-) | [1] - Actually, the `find()` operation uses QUERY strategy by default, which means that the selector string is transformed to a SQL2 query. However, the transformation process is very naïve and simply skips all conditions that can't be easily transformed to SQL2 (eg. selector `[jcr:content/jcr:title=some title]` won't be transformed as it contains some subresource reference). The result of this query is then filtere manually. See [searchStrategy](methods.html#searchstrategystrategy) for more details.
