[SEARXCH-1490]

removed canUpdate in indexNonShardCascade method. This is not needed for correctness but creates problems for cross sharding cascading.
This commit is contained in:
eliaporciani
2019-04-15 14:58:19 +02:00
parent 7004ead69d
commit 6368156384
@@ -2656,7 +2656,7 @@ public class SolrInformationServer implements InformationServer
private void indexNonShardCascade(NodeMetaData nodeMetaData) throws IOException
{
canUpdate();
UpdateRequestProcessor processor = null;
try (SolrQueryRequest request = newSolrQueryRequest())
{
@@ -2668,7 +2668,7 @@ public class SolrInformationServer implements InformationServer
SolrInputDocument input = new SolrInputDocument();
input.addField(FIELD_SOLR4_ID, AlfrescoSolrDataModel.getNodeDocumentId(nodeMetaData.getTenantDomain(), nodeMetaData.getAclId(), nodeMetaData.getId()));
input.addField(FIELD_VERSION, 0);
input.addField(fieldInstance.getField(), stringPropertyValue.toString());
input.addField(fieldInstance.getField(), stringPropertyValue.getValue());
cmd.solrDoc = input;
processor.processAdd(cmd);