cancel
Showing results for 
Search instead for 
Did you mean: 

lucene query fail.

kpatel
Confirmed Champ
Confirmed Champ

hi all,

i am using alfresco 5.0 d

this 2017 folder is already shown in share ui.

here is my lucene query:

PATH:"/app:company_home/st:sites/cm:abc/cm:documentLibrary/cmSmiley Frustratedolutions/cm:audit"

this above query works fine,but when i append cm:2017 then its show me error.

PATH:"/app:company_home/st:sites/cm:abc/cm:documentLibrary/cmSmiley Frustratedolutions/cm:audit/cm:2017"

error:

00100007 Request failed 400 /solr4/alfresco/alfresco?wt=json&fl=DBID%2Cscore&rows=100&df=TEXT&start=0&locale=en_US&alternativeDic=DEFAULT_DICTIONARY&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTENANT_FILTER_FROM_JSON

i am already try ISO9075.decode methods.but results is same.

please suggest me.

thanks in advance.

1 ACCEPTED ANSWER

rupeshsawaliya
Star Contributor
Star Contributor

Hi KPatel,

I just tried this in node browser and found that the folder or file named as 2017 you need to keep in double quotes, Query as following.
PATH:"/app:company_home/st:sites/cm:mydesqdev/cm:documentLibrary/cmSmiley Frustratedolutions/cm:audits/cm:"2017""

it worked successfully.

Regards,

Rupesh Kumar Sawaliya

EnProwess Technologies
Ahmedabad.

View answer in original post

2 REPLIES 2

rupeshsawaliya
Star Contributor
Star Contributor

Hi KPatel,

I just tried this in node browser and found that the folder or file named as 2017 you need to keep in double quotes, Query as following.
PATH:"/app:company_home/st:sites/cm:mydesqdev/cm:documentLibrary/cmSmiley Frustratedolutions/cm:audits/cm:"2017""

it worked successfully.

Regards,

Rupesh Kumar Sawaliya

EnProwess Technologies
Ahmedabad.

hi

Thanks for your valuable reply.

Its works fine.

But can u please explain me why i have to put extra " for only 2017 folder.

Regards.