Index rebuld and vlidation support for AVM.

Added AVM indexes to the configuration checker

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5818 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2007-05-31 14:15:12 +00:00
parent 764e7b94af
commit 4bd5b0266c
8 changed files with 623 additions and 79 deletions

View File

@@ -211,10 +211,10 @@ public class ConfigurationChecker extends AbstractLifecycleBean
for (StoreRef storeRef : storeRefs)
{
// TODO: For now, do not check existence of index for AVM stores
if (storeRef.getProtocol().equals(StoreRef.PROTOCOL_AVM))
{
continue;
}
//if (storeRef.getProtocol().equals(StoreRef.PROTOCOL_AVM))
//{
// continue;
//}
NodeRef rootNodeRef = null;
try
@@ -237,7 +237,7 @@ public class ConfigurationChecker extends AbstractLifecycleBean
SearchParameters sp = new SearchParameters();
sp.addStore(storeRef);
sp.setLanguage(SearchService.LANGUAGE_LUCENE);
sp.setQuery("ID:" + LuceneQueryParser.escape(rootNodeRef.toString()));
sp.setQuery("ISROOT:T");
ResultSet results = null;
int size = 0;