Changing the merge policy of a running data store

The URL /admin/datastore?op=merge command can be used to change the merge policy of a running Endeca data store.

The sticky version of the merge command is intended to change the merge policy of a running data store. The duration of the policy change is for the life of the current Dgraph process (that is, until the Dgraph process is restarted), or until another sticky change is performed during the current Dgraph process.

The format of the sticky version of the command is:
/admin/datastore?op=merge&mergepolicy=<policy>&stickymergepolicy
where policy is either balanced or aggressive, and datastore is the name of the Endeca data store for which you are changing the policy.

The command also performs a merge operation if warranted.

This example:
http://localhost:7770/admin/books?op=merge&mergepolicy=aggressive&stickymergepolicy
forces a merge operation (if one is needed) and changes the current merge policy to an aggressive policy for the "books" data store. In this example, the Endeca Server is running on the localhost machine on port 7770.