Hi,
from what I found out after a lot of googling, it seems to be impossible
to search the JCR for node name substrings:
http://www.mail-archive.com/[email protected]/msg08611.html
It is possible to search for complete node names using "fn:name()", but
not substrings thereof. Unfortunately, the XPath "contains()" function
neither is supported, which would allow to search for substrings within
the result of "fn:name()".
The article above refers some JCR 2.0 functions such as "LOCALNAME()"
(from what I understand of the JCR 2.0 / JSR-283 spec), but that doesn't
seem to be implemented in the Jackrabbit version coming with Magnolia 4.3.3.
The only workaround that I can think of would be to always copy the node
name into a property e.g. called "nodeName", and then query for it using
"jcr:contains(@nodeName, 'some-substring')".
Does anybody per chance know of a more simple solution to this problem?
Regards + thanks for any hints,
Jörg
--
Dipl. inf. Jörg von Frantzius, System Architect
Email mailto:[email protected]
Phone +49 30 283921-318
Fax +49 30 283921-29
Aperto AG - In der Pianofabrik
Chausseestraße 5, D-10115 Berlin-Mitte
Web http://www.aperto.de
HRB 77049, AG Berlin Charlottenburg
Vorstand: Dirk Buddensiek
--
--------------------------------------------------------------
Treffen Sie uns auf der dmexco 2010 in Köln!
Am 15. & 16.9. Stand C-015 / D-028 (Halle 8)
Individuelle Terminvereinbarung unter:
www.aperto.de/dmexco
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------