About MSRP

When AEM Communities is configured to use MSRP as its common store, user generated content (UGC) is accessible from all author and publish instances without the need for synchronization nor replication.

Zookeeper Host
When running in SolrCloud mode with an external ZooKeeper, set this value to the HOST:PORT for the ZooKeeper, such as my.server.com:2181
For a ZooKeeper Ensemble, enter comma-separated HOST:PORT values, such as host1:2181,host2:2181
Leave blank if running Solr in standalone mode using the internal ZooKeeper.default : <blank>

Solr URL
The URL used to communicate with Solr in standalone mode.
Leave blank if running in SolrCloud mode.default : http://127.0.0.1:8983/solr/

Managing User Data

MSRP Reindex Tool

There is an HTTP endpoint for reindexing Solr for MSRP when installing new configuration files or repairing a damaged Solr index.

With this tool, MongoDB is the source of truth for MSRP; backups need only be taken of MongoDB.

The entire UGC tree may be reindexed, or only a specifc subtree, as specified by the path data parameter.

This tool may be run from the command line using cURL or any other HTTP tool.

When reindexing, there is a tradeoff between memory and performance controlled by the batchSize data parameter, which specifies how many UGC records are reindexed per batch.

A reasonable default is 5000 :

if memory is an issue, specify a a smaller number

if speed is an issue, specify a larger number to increase speed

Running MSRP Reindex Tool Using cURL Command

The following cURL command shows what is necessary for an HTTP request to reindex UGC stored in MSRP.

The basic format is :

cURL -u signin -d data reindex-url

signin = administrator-id:password
for example : admin:admin

data = "batchSize=size&path=path"

size = how many UGC entries to reindex per operation
currently, only MSRP is supported :/content/usergenerated/asi/mongo/

path = the root location of the tree of UGC to reindex
- to reindex all UGC, specify the value of the asipath property of /etc/socialconfig/srpc/defaultconfiguration
- to limit the index to some UGC, specify a subtree of asipath

reindex-url = the endpoint for reindexing of SRP
currently, only MSRP is supported :http://localhost:4503/services/social/datastore/mongo/reindex

Solr was restarted after the new configuration files replaced the existing ones

Secure Connection to MongoDB Fails

If an attempt to make a secured connection to the MongoDB server fails due to a missing class definition, it is necessary to update the MongoDB driver bundle, mongo-java-driver, available from the public maven repository.