AnsweredAssumed Answered

lucene query is not working(solr4 index problem)

Question asked by kpatel on Jan 9, 2017
Latest reply on Jan 10, 2017 by kpatel

Hi all,

I am using alfresco 5.0 community.

My requirement is to get recently uploaded document. so, 

i  was make changes in Solr/ archive-SpacesStore / conf /solrcore.properties file.

i change alfresco.cron=0/15 * * * * ? * to  alfresco.cron=0/5 * * * * ? *

I am not sure this will create problem in solr index. please suggest me.

 

here is my folder structure.

--site_name

-------companyName

------------document

------------trash

------------audit 

-------------- year

--------------------smsid

 

 

Lucene query :

 

StringBuilder queryForDocumentNodeRef = new StringBuilder();
queryForDocumentNodeRef
.append(" PATH:\"/app:company_home/st:sites/cm:")
.append(SITE_NAME).append("/cm:")
.append(SITE_DOCUMENT_LIBRARY).append("/cm:")
.append(companyName).append("/cm:")
.append(AuditConstants.SPACE_AUDIT).append("/cm:")
.append(Year).append("/cm:").append(smsID).append("/cm:")
.append(SPACE_DOCUMENTS).append("\" ");

 

 

Sometime my lucene query is not working.

its not find those folder which is shown in share.

 

please suggest me for this problem.

thanks in advance.

Outcomes