开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜