When you try to enable version purging, you get an error similar to the following:
14.11.2007 15:57:00 *ERROR* adapter: purgeVersions: Cannot create the query to find versions. Indexing must be enabled on workspace live_publish and XPath must be a supported Query Language. Failure reason: javax.jcr.RepositoryException: no search manager configured for this workspace at com.day.crx.core.WorkspaceImpl.getQueryManager(WorkspaceImpl.java:578)
If you want to use the search function of the Crx Content Explorer, configure it manually:
- Open the crx_home/workspaces/your_workspace/worspace.xml file.
- Add the following between <workspaces>:
<!-- Search index and the file system it uses. --> <SearchIndex class="com.day.crx.query.lucene.LuceneHandler"> <param name="useCompoundFile" value="true"/> <param name="minMergeDocs" value="1000"/> <param name="maxMergeDocs" value="100000"/> <param name="mergeFactor" value="10"/> <param name="path" value="${wsp.home}/index"/> </SearchIndex> - Restart the instance.
The default installation of Crx/Communiqué does not configure a search manager for the workspaces. If you look in crx_home/workspaces/your_workspace/worspace.xml, you see that there is no search manager configured:
<?xml version="1.0" encoding="UTF-8"?> <Workspace name="live_author"> <!-- virtual file system of the workspace: class: FQN of class implementing FileSystem interface --> <FileSystem class="com.day.crx.core.fs.local.LocalFileSystem"> <param name="path" value="${wsp.home}"/> <!-- param name="enableHandleMonitor" value="true" / --> </FileSystem> <!-- persistence manager of the workspace: class: FQN of class implementing PersistenceManager interface --><PersistenceManager class="com.day.crx.persistence.DerbyPersistenceManager"/> <!-- Search index and the file system it uses. --> </Workspace>