AnsweredAssumed Answered

luceneSearch sorting failed

Question asked by blc on Jun 10, 2010
Latest reply on Jun 11, 2010 by invictus9
Hi,

I am using luceneSearch in webscript to search all persons in alfresco. However, the sorting seems not working propertly as the result is not in ascending order. My code for the search is:

var iqnamePath="TYPE:\"{http://www.alfresco.org/model/content/1.0}person\"";
var result = search.luceneSearch(iqnamePath,"@cm:firstName", true);

Result of the search is:
1262246699816
1262246700629
1262246928004
1262246928426
1262247223363
1262247224645
1262247330770
1262247331504
99
99
99
99
Administrator
Alan
ALICECHU
Ann
AP1
AP2
apollomgr
apollosup
Carmen
account for ccgocm
account for ccgocm
account for ccgocm
Catherine Chan
COM
comso
COP1
cop1so
….More Result

Any ideas please.

Thanks

Outcomes