cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene issue after ASR deployment in destination server

kirit
Champ on-the-rise
Champ on-the-rise
Hi,

I have customized the ASR functionality to deploy only a single content to the destination server like ASR (I am not using the snapshot deployment, instead i have added an action for every content, on click of which it will call a hook classes to deploy that particular content on the destination alfresco server's staging sandbox, mostly i have used the existing API's methods and code).
I am getting my content deployed to my destination server. but when i try to search that content using the lucene query from node browser its not giving me result. i have made sure that from web-client UI i can see the content but its not coming in lucene search result.

strange is, if i do re-indexing with mode=FULL for number of times then in some case its coming in lucene search result.

so is there any method which i need to call from my source while deploying content, so that on destination side my content got indexed or any other settings either in source or destination side do i need to make so that incoming content got into lucene indexe.?
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
Yes.   You need to snapshot the destination server.

kirit
Champ on-the-rise
Champ on-the-rise
Thanks mrogers,
I think if we snapshot the destination server then it will dump other files as well like snapshot deployment. i want to deploy only one content to destination server.
may i am not understanding what exactly meaning of "snapshot the destination". if you can provide any code reference then it may help.

mrogers
Star Contributor
Star Contributor
Search will only find files which are snapshotted.     After you have put your file into your destination store you need to snapshot it.

kirit
Champ on-the-rise
Champ on-the-rise
Thanks once again mrogers,
I got partially about snapshot, but i am not getting any code reference for the same. if possible can you please provide me some reference on how can we snapshot the single file or the store?