Fix for ALF-10561 SOLR stops indexing if it is given a property that is neither indexed or stored - it throws an exception

Fix ALF-10358 	SOLR No easy way to get the current last TX indexed to monitor how the SOLR index is building

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30857 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2011-09-29 14:28:46 +00:00
parent 465013fa9f
commit 833c993661
2 changed files with 10 additions and 0 deletions

View File

@@ -60,6 +60,12 @@ public class TransactionsGet extends DeclarativeWebScript
Map<String, Object> model = new HashMap<String, Object>(1, 1.0f);
model.put("transactions", transactions);
Long maxTxnCommitTime = solrTrackingComponent.getMaxTxnCommitTime();
if(maxTxnCommitTime != null)
{
model.put("maxTxnCommitTime", maxTxnCommitTime);
}
if (logger.isDebugEnabled())
{