lucene query fail.

cancel
Showing results for 
Search instead for 
Did you mean: 
kpatel
Active Member

lucene query fail.

Jump to solution

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 Solution

Accepted Solutions
rupeshsawaliya
Established Member

Re: lucene query fail.

Jump to solution

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 solution in original post

2 Replies
rupeshsawaliya
Established Member

Re: lucene query fail.

Jump to solution

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.

kpatel
Active Member

Re: lucene query fail.

Jump to solution

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.