The configurations in workspace.xml allow you to tune the behavior of the search index, however they don’t let you modify what content is being indexed. To configure this, we need to look at the indexing_config.xml file which allows us to specify indexing rules. In CQ versions <= 5.4 the default configuration file indexing_config.xml can be found under crx-quickstart/server/runtime/0/_crx/WEB-INF/classes.
In CQ 5.5, the default configuration file is embedded in the repository bundle deployed in the OSGi container.
To add a custom indexing configuration:
Copy the default search index configuration file indexing_config.xml under crx-quickstart/repository/workspaces/crx.default/indexing_config.xml.
For CQ5.4 and older versions you can find this file under crx-quickstart/server/runtime/0/_crx/WEB-INF/classes/indexing_config.xml.
For CQ5.5, we copied the default indexing_config.xml file below for your convenience.
Now we can set a path for our custom indexing_config.xml in the SearchIndex element of workspace.xml. Open crx-quickstart/workspaces/crx.default/workspace.xml in a text editor and add an indexingConfiguration parameter as shown below:
Trantor is a leading software development company headquartered in Menlo Park, CA. We deliver innovative technology solutions to enable our clients achieve their business objectives at reduced cost. We excel in internalizing our client's business processes Read more...