Node repository related functions.
Example
var repoLib = require('/lib/xp/repo');
Methods
(static) refresh(params)
Refresh the data for the given index-type in the current repository.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | JSON with the parameters. Properties
|
Examples
// Refresh all for default repository
repoLib.refresh();
// Refresh storage for default repository
repoLib.refresh({mode: 'storage'});
// Refresh search for 'system-repo' repository
repoLib.refresh({
mode: 'search',
repo: 'system-repo'
});