开发者

NHibernate.Search - Set Index Directory at runtime

开发者 https://www.devze.com 2023-02-04 10:08 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号