In my application I am going to implement hibernate lucene. My application will be deployed in clustered environment.
Now, I am not able to find out how, I can point out the location of all the lucene index to a shared location. So it can be accessed through the network.
You can, but it's not as simple as having a shared directory: two instances of your application cannot access the same index files simultaneously.
Thus, the preferred solution is generally to:
Hibernate Search provides implementations for both mechanisms:
filesystem-master
andfilesystem-slave
directory providers.So, that's a bit complex.
Another option, perhaps easier, is to use the Elasticsearch integration, moving the index to a remote cluster. It's simpler to use, but has some rough edges as it's still experimental.
We plan to bring first-class support for the Elasticsearch integration in the next version of Hibernate Search, version 6.