Hi,
if you already have a list of all indexed classes you can just use the batch indexing code as described in the documentation. I must say having so many different indexed classes is quite unusual. At least I haven't heard of many such usecases.
Of course you can always scan your classes for all classes annotated with @Indexed.
There is one other way using the current API, but it involves a cast. Maybe that's good enough for you. From your FullTextSession you can do
Code:
SearchFactory factory = fullTextSession.getSearchFactory();
SearchFactoryImpl specificFactory = (SearchFactoryImpl) factory;
Set<Class> indexedClasses = specificFactory.getDocumentBuildersIndexedEntities().keySet();
--Hardy