cancel
Showing results for 
Search instead for 
Did you mean: 

problem in writing a lucene query

cookie
Champ in-the-making
Champ in-the-making
HI every one
I want write a lucene Query to find a folder which it's name starts with digit, but I face with parse query error.
My query is : PATH:"/app:company_home/cm:1990//*  and I Know alfresco writes this query like  PATH:"/app:company_home/cm:_x0031_990//*
  but I don’t know how to generate this Query ?
PLZ somebody helps me .
thanks alot
 

1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
If you are working in JavaScript API you should encode in ISO 9075 each space name:


PATH:"/app:company_home/cm:"+search.ISO9075Encode('1990')+"//*"


If you are working in Java:

PATH:"/app:company_home/cm:"+ISO9075.encode("1990")+"//*"