Quote:
will Hibernate search be able to handle indexing entities that do not exist in the db?
that would be quite hard; you can have different persistence providers, as has been done for the JBoss Cache:
http://jbosscache.blogspot.com/2008/07/jboss-cache-searchable.html but I don't think you will go that road.
The SearchFactory of course has a list of all annotated classes, and is holding all information you need to get a list of all declared Field.
I am not seeing particular use for a "search across all", you probably want to list what "all" means, as you may have exceptions one day.
the practice recommended by dobes looks like the best option IMHO, so you still can list classes to include or exclude dynamically.