I have an application built with Spring+JPA+Hibernate running on Heorku, and I use Hibernate-Search for FullTextSearch. On my local machine i store my indexes on file system. My configuration in persistence.xml.
<property name="hibernate.search.default.directory_provider"
value="filesystem"/>
<property name="hibernate.search.default.indexBase"
value="/opt/lucene/indexes"/>
Heroku has only-read access to the file system, then i store the indexes in memory, but it is no the best approach, because the indexes are lost when the server instance restart. How would best way to do this? there's a way to integrate hibernate search with WebSolr or something else?