close

Filter

loading table of contents...

Search Manual / Version 2512.1

Table Of Contents

5.4.1 Specifying the Set of Indexed Content Beans

Each content bean in the CAE represents a content object from the CoreMedia Content Server.

In order to specify the indexed content beans, you have to define the set of source contents using a content selector.

The Spring bean contentSelector of interface ContentSelector is responsible for selecting source contents for feeding. The default implementation PathAndTypeContentSelector selects contents by type and path and can be configured with the following properties:

caefeeder.content.path
Specifies the content repository folder paths below which content gets indexed. Folder paths must start with a slash and must not overlap. The value of this property is a Map that maps folder paths to 'true' for included paths. Note, that paths mapped to 'false' are not excluded, but simply ignored.
caefeeder.content.type
Specifies the content types for which content gets indexed. The value of this property is a Map that maps content types to 'true' for included types. Note, that types mapped to 'false' are not excluded, but simply ignored.
caefeeder.content.include-subtypes
Specifies whether subtypes of the configured content types are selected as well. The default is true.
caefeeder.content.apply-configuration-changes
Specifies whether changes of the properties above are applied to existing content when the CAE Feeder is restarted. The default is false.

See Section 3.11, “CAE Feeder Properties” in Deployment Manual for a detailed description of configuration properties.

Note

Note

By default, a change of the caefeeder.content.* properties only affects content that is created, moved or renamed afterward. It does not trigger indexing of already existing content that was not selected before, nor removal of content from the index that is no longer selected. The CAE Feeder logs a message on startup, if it detects such a configuration change.

If property caefeeder.content.apply-configuration-changes is set to true, the CAE Feeder applies configuration changes on restart. Newly selected contents are indexed. Contents that are no longer selected are removed from the index. Contents that remain selected are not re-indexed. This also applies to changes made before the property was enabled.

The CAE Feeder detects a change by comparing the configuration with the one it stored on an earlier start. It stores the configuration on its very first start or, for an existing installation, on the first start after updating to a version that supports this feature. Changes made before or together with that start are not detected. To apply them, schedule a re-initialization as described below.

Applying a change requires the same initialization as the very first start. For large repositories, this may take a while. See Section 5.3.2, “Resetting” for details on re-indexing all contents.

Custom implementations of ContentSelector can support this by implementing method getConfigurationFingerprint(). Otherwise, a configuration change has no effect on already existing contents. If a code change of a custom implementation changes which contents are selected, the fingerprint should change as well, for example by including a version number.

To apply changes that are not detected, you can schedule a re-initialization of the selected contents for the next start with an HTTP POST request to the reinitialize Spring Boot actuator endpoint at http://host:port/actuator/reinitialize. This works independently of property caefeeder.content.apply-configuration-changes. A GET request returns whether a re-initialization is scheduled, and a DELETE request cancels it.

Example

Example 5.1, “ContentSelector example” selects all contents of type CMMedia, CMArticle, CMDownload and CMCollection (including sub types) which are located below the paths /Sites or /Settings/Taxonomies:

caefeeder.content.path[/Sites]=true
caefeeder.content.path[/Settings/Taxonomies]=true
caefeeder.content.type.CMArticle=true
caefeeder.content.type.CMCollection=true
caefeeder.content.type.CMDownload=true
caefeeder.content.type.CMMedia=true
caefeeder.content.include-subtypes=true

Example 5.1. ContentSelector example


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.