problem in writing a lucene query

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2014 09:02 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2014 10:28 AM
If you are working in JavaScript API you should encode in ISO 9075 each space name:
If you are working in Java:
PATH:"/app:company_home/cm:"+search.ISO9075Encode('1990')+"//*"
If you are working in Java:
PATH:"/app:company_home/cm:"+ISO9075.encode("1990")+"//*"
