* @throws Exception \r
*/\r
void createRequiredIndices() throws Exception {\r
- DataSource dataSource = JDBCTools.getDataSource(JDBCTools.NUXEO_REPOSITORY_NAME);\r
\r
+ // Define a set of columns (fields) and their associated\r
+ // tables, on which database indexes should always be created\r
final String COLLECTIONSPACE_CORE_TABLE_NAME = "collectionspace_core";\r
final String NUXEO_FULLTEXT_TABLE_NAME = "fulltext";\r
final String NUXEO_HIERARCHY_TABLE_NAME = "hierarchy";\r
indexableFields.put("jobid", NUXEO_FULLTEXT_TABLE_NAME);\r
indexableFields.put("name", NUXEO_HIERARCHY_TABLE_NAME);\r
\r
+ // Invoke existing post-init code to create these indexes,\r
+ // sending in the set of values above, in contrast to\r
+ // drawing these values from per-tenant configuration.\r
+ DataSource dataSource = JDBCTools.getDataSource(JDBCTools.NUXEO_REPOSITORY_NAME);\r
AddIndices addindices = new AddIndices();\r
List<Field> fields = new ArrayList<Field>();\r
for (Map.Entry<String,String> entry : indexableFields.entrySet()) {\r