NHibernate.Search索引重建 [英] NHibernate.Search Index Rebuild

查看:110
本文介绍了NHibernate.Search索引重建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用NHibernate.Search重建Lucene.NET索引?

How can i rebuild Lucene.NET Index using NHibernate.Search ?

谢谢.

推荐答案

IFullTextSearchSession中有一个Index方法,该方法将强制实体并为其建立索引.因此,您只需要检索所有对象,然后在它们上调用索引.

There is an Index method off of the IFullTextSearchSession that will force and index of an entity. So you just need to retrieve all of the objects and then call index on them.

这篇关于NHibernate.Search索引重建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆