cancel
Showing results for 
Search instead for 
Did you mean: 

solr Indexing taking too much time...

arpit_gupta
Champ in-the-making
Champ in-the-making
Hello friends,

I have integrated REST services with solr subsysten in my application.

I am uploading documents with metadata  using default upload and metadata scripts. and after uploading data and updating metadata i search alfresco for documents on the basis of metadata.

Now the problem is alfresco is not returning currently uploaded document in search results and hence i can not show the correct document list on application UI and that's why user think that document is not uploaded.

Though if i fire the search script 2-3 times more i get the correct result. I guess alfresco is taking time in indexing the metadata.

I am in real trouble here. Any help??

Thanks,
Arpit
12 REPLIES 12

srm
Champ in-the-making
Champ in-the-making
Rogers, thank you for your fast reply. If switching from solr to lucene, affects the performance as you said, i would not consider this approach.

coming back to the problem of not able to search the just saved document, what is the solution that you would suggest? There is a lag of about
4-5 seconds before i could search and retrive the document. can you point me to any documentation links that explains how to configure/overcome this issue?

thank you much in advance

aditya_chaudhar
Champ on-the-rise
Champ on-the-rise
Hi Forum,

Any updates in this problem??
In my case i am searching node as below
var nodes = search.luceneSearch("@type\\:customtype:\""+customproperty+"\"");

Problem :
when i upload document and try to view document using this query (from webscript )immediately it did not work <strong>sometimes</strong>.

Is it related to SOLR indexing?

What is the best way to solve this??

if i use 
alfresco.cron=0/15 * * * * ? *  
  and change it to
alfresco.cron=0/2 * * * * ? *  

that is 2 seconds to search for any work  has any impact if i make this to 1 or 2 seconds???


As i mentioned it happens sometimes when i upload document after long time or after server restart is there any service which sleeps and it awake when i do some work on server???

Please guide me also suggest if any good approach i should follow to solve this

Version Alfresco 4.2e

mrogers
Star Contributor
Star Contributor
DON'T use SEARCH for a document you just uploaded.   That's bonkers!