Create Index for OOTB query with "order by lower(name(a)) desc"
Hello everyone,
i'm working with a big assets project, where the client has some folders with thousands of assets, when it tries to review the folder content and sort by name for example, I'm seeing a warn message log due to traversal query.
Basically it is the list view and then sort by name.
The query is
SQL2: select [jcr:path], [jcr:score], * from [nt:base] as a where ischildnode(a, '/content/dam/folder') order by lower(name(a)) desc
xpath: /jcr:root/content/folder/* order by fn:lower-case(fn:name()) descending
I tried to create a new index under nt:base with
nt:base
...properties
......name
.........name = "function*lower*@:name"
.........ordered = true
.........type = "String"
but it doesn't work, i mean i generated the index then used the query performance tool, but the index is not used and I still see the message in the log.
any help is welcome!


