mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Merge branch 'fix/SEARCH-2238_ShardGrouping' into 'master'
SEARCH-2238: Avoid setting the core name in Floc properties, as this provokes... See merge request search_discovery/insightengine!540
This commit is contained in:
+3
-6
@@ -41,7 +41,6 @@ import org.alfresco.service.cmr.dictionary.PropertyDefinition;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.solr.AlfrescoCoreAdminHandler;
|
||||
import org.alfresco.solr.AlfrescoSolrDataModel;
|
||||
import org.alfresco.solr.BoundedDeque;
|
||||
import org.alfresco.solr.InformationServer;
|
||||
import org.alfresco.solr.NodeReport;
|
||||
import org.alfresco.solr.TrackerState;
|
||||
@@ -203,11 +202,9 @@ public abstract class CoreStatePublisher extends AbstractTracker
|
||||
|
||||
HashMap<String, String> propertyBag = new HashMap<>();
|
||||
propertyBag.put("coreName", coreName);
|
||||
|
||||
HashMap<String, String> extendedPropertyBag = new HashMap<>(propertyBag);
|
||||
updateShardProperty();
|
||||
|
||||
extendedPropertyBag.putAll(docRouter.getProperties(shardProperty));
|
||||
propertyBag.putAll(docRouter.getProperties(shardProperty));
|
||||
|
||||
return ShardStateBuilder.shardState()
|
||||
.withMaster(isMaster)
|
||||
@@ -216,7 +213,7 @@ public abstract class CoreStatePublisher extends AbstractTracker
|
||||
.withLastIndexedChangeSetId(changeSetsTrackerState.getLastIndexedChangeSetId())
|
||||
.withLastIndexedTxCommitTime(transactionsTrackerState.getLastIndexedTxCommitTime())
|
||||
.withLastIndexedTxId(transactionsTrackerState.getLastIndexedTxId())
|
||||
.withPropertyBag(extendedPropertyBag)
|
||||
.withPropertyBag(propertyBag)
|
||||
.withShardInstance()
|
||||
.withBaseUrl(infoSrv.getBaseUrl())
|
||||
.withPort(infoSrv.getPort())
|
||||
@@ -229,11 +226,11 @@ public abstract class CoreStatePublisher extends AbstractTracker
|
||||
.withTemplate(shardTemplate)
|
||||
.withHasContent(transformContent)
|
||||
.withShardMethod(ShardMethodEnum.getShardMethod(shardMethod))
|
||||
.withPropertyBag(propertyBag)
|
||||
.endFloc()
|
||||
.endShard()
|
||||
.endShardInstance()
|
||||
.build();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user