jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcos Unzue <marcos.un...@globant.com>
Subject Case-sensitive search result.
Date Wed, 16 Sep 2009 13:32:40 GMT
Hi all
I have a simple question regarding jackrabbit, OCM and the way that the result is ordered.
I created several tag nodes with the following names: A, a, B, b, C, c, D, d, E, e

When I executed the query:

   QueryManager queryManager = jcrTemplate.createQueryManager();
   Filter filter = queryManager.createFilter(Tag.class);
   filter.setScope(rootTagPath);
   Query query = queryManager.createQuery(filter);
   query.addOrderByAscending("name");

I obtained the result ordered in a case-sensitive way:
A, B, C, D, E, a, b, c, d, e

Exists any way, to obtain the result case-insensitive ordered: A,a,B,b,C,c,D,d,E,e

Thank in advance for your help.
Marcos.

Mime
View raw message