NHibernate.Search - Set Index Directory at runtime
I am building a Multi-Tenant application and would like to create seperate Indexes for each tenant, however I can't seem to find a way to set my 开发者_C百科index directory at runtime for NHibernate.Search when indexing my data.
fullTextSession.Index(entityInstance);
This seems to be using the index directory from my config file, is there a way around this?
Thanks, Paul
I have the same problem, though in my case each tenant has its own sessionfactory, so after reading the common configuration, just before building the session factory, I am overriding the settings for NHibernate.Search.
精彩评论