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.
Did you try the same query on Admin Tools > Node Browser?
For e.g. PATH:"/app:company_home/st:sites/cm:swsdp/cm:documentLibrary/*"
Thanks for reply Sujay Pillai
I try that. and its working fine.
can u please tell me the difference between lucene query and search service.
i know that lucene query is perform on solr index but i have no idea about how search service work is it directly get data from db or index.
And i am give you more clarification i am using alfresco for just document storage.
so i want get all recently tag or uploaded document. but its not get me recently tag or uploaded documents.
so please suggest me.
thanks in advance.
You can try find all.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.