I guess so. You would need to define a second persistence unit (a second EntityManagerFactory/SessionFactory) for DB2 in App1, and configure the Hibernate Search backend in that persistence unit to point to ES1. You’ll have to be careful about conflicts, though:
you’ll want to clearly separate indexes that are mapped to DB1 from those mapped to DB2 (don’t write to a single indexes from both databases)
you’ll want to decide who writes to each index: either App1 or App2, but not both, or you’ll get conflicts and will end up with out-of-sync indexes.