I'm trying to implement Hibernate Search on my aws application. As usual, everything works great on localhost, but when upload to aws, I receive the following error:
org.hibernate.search.SearchException: Unable to create index directory:
/usr/lucene/indexes for index com.myproject.domain.User
My Hibernate Search config:
<prop key="hibernate.search.default.directory_provider">filesystem</prop>
<prop key="hibernate.search.default.indexBase">/usr/lucene/indexes</prop>
I'm using EC2 + elastic beanstalk, linux with tomcat 7. I have windows on my local machine.
Should I create a directory named "/usr/lucene/indexes" on EC2 manually? Thanks.