Workspace configuration
Once a workspace is created, you can adjust the workspace configuration on a workspace-by-workspace basis.
For each new workspace, there is a corresponding workspace.xml
file for fine-tuning individual performance.
By default, the file is located in the file system inside the corresponding workspace folder.
To modify the configuration of an existing workspace, you need to change the workspace.xml file for that workspace.
Changing the <Workspace/> element in the repository configuration file does not affect existing workspaces.
|
File system
The virtual file system passed to the persistence manager and search index.
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${rep.home}/repository" />
</FileSystem>
Jackrabbit provides a lot of choices for how you can configure the FileSystem
.
Choose the class that best fits your use case.
Persistence manager
Each workspace in a Jackrabbit content repository uses separate persistence managers to store the content in that workspace.
<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
<param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
<param name="schemaObjectPrefix" value="${wsp.name}_"/>
</PersistenceManager>
Jackrabbit provides a lot of choices for how you can configure the PersistenceManager
. Choose the class that best fits your use case.
Search index
Node names and property values are indexed as soon as the data is saved or as soon as the transaction is committed.
Text extraction is done asynchronously in a background thread. That means text that’s changed or added isn’t available immediately, but rather after a short delay. You can configure the exact behaviour using the extractor settings.
Jackrabbit provides the following options in the class SearchIndex
.
All parameters (except path
) have default values and you can omit them and use the default value instead.
See Jackrabbit Search for more details. |
Basic configuration
Parameter | Description |
---|---|
|
required The location of the index directory.
A reasonable value is: |
|
optional When not set, all properties of a node are indexed. Magnolia provides a default indexing configuration file located in the Core module.
|
|
optional The name of the class that implements |
|
optional Sets the default analyzer in use for indexing.
The default value is the This analyzer uses an English-language stop word set. Lucene provides language-specific analyzers, which you can configure property-by-property in the indexing configuration file. |
|
optional The name of the class that implements |
|
optional Indicates whether the |
See Jackrabbit search for a general summary of Jackrabbit search in the context of Magnolia. Alternatively, go to the Search index configuration file for specifics on index rules, aggregates, analyzers, and configuration parameters.
Workspace security
Workspace security is handled by the MagnoliaAccessProvider
.
See the workspace security section for more details. |
Synchronize workspaces between Magnolia instances
When using Magnolia, you often store content in a variety of workspaces.
Typically, workspaces are kept under your magnolia.repositories.home
in the WEB-INF/config/default/magnolia.properties
file.
The Content Types module creates node types, workspaces, and namespaces on-the-fly.
If using, make sure your repository configuration and workspaces are properly synchronized as this on-the-fly feature makes changes to repository configuration files.
The following should be considered when creating a new content type:
π repo |
π magnolia |
π repository |
π datastore |
π meta |
βΈ¬ rootUUID |
π namespaces |
⬩ ns_idx.properties |
⬩ ns_reg.properties |
π nodetypes |
⬩ custom_nodetypes.xml |
⬩ db.mv.db |
π workspaces |
π config |
⬩ db.mv.db |
⬩ workspace.xml |
Item | Notes | ||
---|---|---|---|
Namespace definitions |
Found in the Copy your custom namespace registry and index to the target environment to synchronize them. |
||
Node type definitions |
Custom node type definitions are stored in the
|
||
Workspace configuration |
Your workspace configuration stores the detailed workspace configuration in the
|
||
Index and lock |
You can remove all files and folder under the Why is this important?
This ensures repository consistency and cleans up all unsynchronized indexes. For content synchronization, this folder should not be copied over different instances. It need to be cleaned up in the target instance instead. |
||
The actual content |
The actual content is typically stored in your configured database tables with the name prefix according to "schemaObjectPrefix" name where For example
|
Retrieving content
When using the cmsfn Content by template ID function, maxResultSize
sets the maximum number of results returned. Choosing a moderate threshold can significantly improve query performance.