cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with PATH in lucene Query

jithusuji
Champ in-the-making
Champ in-the-making
Path:"/app:company_home/stSmiley Frustratedites/cm:sdtool/cm:documentLibrary" AND @cm\:name:"My_Folder" AND TYPE:"cm:folder"
I am using this Lucene query to find if a folder exists in the location /app:company_home/stSmiley Frustratedites/cm:sdtool/cm:documentLibrary but the result is allways empty its working fine with Path:"/" AND @cm\:name:"My_Folder" AND TYPE:"cm:folder",

Thanks in Advance
4 REPLIES 4

jcustovic
Champ in-the-making
Champ in-the-making
Try with
PATH:"/app:company_home/st:sites/cm:sdtool/cm:documentLibrary/*" AND @cm\:name:"My_Folder" AND TYPE:"cm:folder"

jithusuji
Champ in-the-making
Champ in-the-making
@jcustovic Thanks a lot for your reply,
I tried it but not working
+PATH:"/app:company_home/cm:sdtool//."  AND @cm\:name:"My_Folder"

This is working fine for me but when i try to access a site with stSmiley Frustratedites its not working Smiley Sad

jcustovic
Champ in-the-making
Champ in-the-making
For example
PATH:"/app:company_home/st:sites/*" AND @cm\:name:"testSite" AND TYPE:"cm:folder"
works fine for me. Try using "sites" instead of "Sites". Its case sensitive.

jithusuji
Champ in-the-making
Champ in-the-making
Ohh yes That worked for me Thanks a lot @jcustovic  Thanks a lot

Smiley Happy